Skip to content

Commit 772e47c

Browse files
committed
Fix lint issues
1 parent a84233c commit 772e47c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/mount/mount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (m *mounter) GetDevicePath(ctx context.Context, volumeID string) (string, e
7878
return false, nil
7979
})
8080

81-
if err == wait.ErrWaitTimeout {
81+
if wait.Interrupted(err) {
8282
return "", fmt.Errorf("failed to find device for the volumeID: %q within the alloted time", volumeID)
8383
} else if devicePath == "" {
8484
return "", fmt.Errorf("device path was empty for volumeID: %q", volumeID)

pkg/util/idlocker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const (
3333
// VolumeLocks implements a map with atomic operations. It stores a set of all volume IDs
3434
// with an ongoing operation.
3535
type VolumeLocks struct {
36-
locks sets.String
36+
locks sets.Set[string]
3737
mux sync.Mutex
3838
}
3939

4040
// NewVolumeLocks returns new VolumeLocks.
4141
func NewVolumeLocks() *VolumeLocks {
4242
return &VolumeLocks{
43-
locks: sets.NewString(),
43+
locks: sets.New[string](),
4444
}
4545
}
4646

0 commit comments

Comments
 (0)