diff options
| author | n9 <n9> | 2023-08-10 11:10:56 +0200 |
|---|---|---|
| committer | Chris Lu <chrislusf@users.noreply.github.com> | 2023-08-10 06:51:06 -0700 |
| commit | 609101d970f2243df169585967d237bac6d8f9a0 (patch) | |
| tree | 947158b0a5b16203eb32ba0c2cad8f586b682a9e /pkg/driver/utils.go | |
| parent | 32560a9f185c8fb6fa8926781041b6c718c1720f (diff) | |
| download | seaweedfs-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.go | 2 |
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) { |
