Skip to content

Commit

Permalink
Lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <[email protected]>
  • Loading branch information
hugelgupf committed Feb 7, 2024
1 parent fed1f0e commit e16dfc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cp/cmp/cmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package cmp

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"reflect"
Expand Down Expand Up @@ -38,7 +37,7 @@ func isEqualFile(fpath1, fpath2 string) error {
}

func readDirNames(path string) ([]string, error) {
entries, err := ioutil.ReadDir(path)
entries, err := os.ReadDir(path)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -80,7 +79,7 @@ func IsEqualTree(o cp.Options, src, dst string) error {
if err != nil {
return err
}
// ioutil.ReadDir guarantees these are sorted.
// os.ReadDir guarantees these are sorted.
if !reflect.DeepEqual(srcEntries, dstEntries) {
return fmt.Errorf("directory contents did not match:\n%q had %v\n%q had %v", src, srcEntries, dst, dstEntries)
}
Expand Down
1 change: 1 addition & 0 deletions uio/archivereader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func TestArchiveReaderPreReadShort(t *testing.T) {

// randomString generates random string of fixed length in a fast and simple way.
func randomString(l int) string {
//nolint
rand.Seed(time.Now().UnixNano())
r := make([]byte, l)
for i := 0; i < l; i++ {
Expand Down

0 comments on commit e16dfc2

Please sign in to comment.