aboutsummaryrefslogtreecommitdiff
path: root/pkg/driver/utils.go
diff options
context:
space:
mode:
authorn9 <n9>2023-08-10 11:10:56 +0200
committerChris Lu <chrislusf@users.noreply.github.com>2023-08-10 06:51:06 -0700
commit609101d970f2243df169585967d237bac6d8f9a0 (patch)
tree947158b0a5b16203eb32ba0c2cad8f586b682a9e /pkg/driver/utils.go
parent32560a9f185c8fb6fa8926781041b6c718c1720f (diff)
downloadseaweedfs-csi-driver-609101d970f2243df169585967d237bac6d8f9a0.tar.xz
seaweedfs-csi-driver-609101d970f2243df169585967d237bac6d8f9a0.zip
Fix: error strings should not be capitalized (ST1005)
Context: https://github.com/golang/go/wiki/CodeReviewComments#error-strings https://stackoverflow.com/a/68793833
Diffstat (limited to 'pkg/driver/utils.go')
-rw-r--r--pkg/driver/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/driver/utils.go b/pkg/driver/utils.go
index eee1825..24298bb 100644
--- a/pkg/driver/utils.go
+++ b/pkg/driver/utils.go
@@ -56,7 +56,7 @@ func ParseEndpoint(ep string) (string, string, error) {
return s[0], s[1], nil
}
}
- return "", "", fmt.Errorf("Invalid endpoint: %v", ep)
+ return "", "", fmt.Errorf("invalid endpoint: %v", ep)
}
func logGRPC(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {