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/mount_util.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/mount_util.go')
| -rw-r--r-- | pkg/driver/mount_util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/driver/mount_util.go b/pkg/driver/mount_util.go index 40716d0..b62a9e7 100644 --- a/pkg/driver/mount_util.go +++ b/pkg/driver/mount_util.go @@ -23,7 +23,7 @@ func waitForMount(path string, timeout time.Duration) error { time.Sleep(interval) elapsed = elapsed + interval if elapsed >= timeout { - return errors.New("Timeout waiting for mount") + return errors.New("timeout waiting for mount") } } } |
