diff options
Diffstat (limited to 'libpod/lock/file/file_lock.go')
-rw-r--r-- | libpod/lock/file/file_lock.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/lock/file/file_lock.go b/libpod/lock/file/file_lock.go index 1379e690a..55110fc0b 100644 --- a/libpod/lock/file/file_lock.go +++ b/libpod/lock/file/file_lock.go @@ -2,7 +2,6 @@ package file import ( "fmt" - "io/ioutil" "os" "path/filepath" "strconv" @@ -129,7 +128,7 @@ func (locks *FileLocks) DeallocateAllLocks() error { if !locks.valid { return fmt.Errorf("locks have already been closed: %w", syscall.EINVAL) } - files, err := ioutil.ReadDir(locks.lockPath) + files, err := os.ReadDir(locks.lockPath) if err != nil { return fmt.Errorf("error reading directory %s: %w", locks.lockPath, err) } |