Error strings should not be capitalized
Reported by staticcheck 2022.1.2 (v0.3.2) See: staticcheck.io
This commit is contained in:
parent
027746ef6e
commit
fdd2f8e6d2
65 changed files with 159 additions and 159 deletions
|
@ -102,7 +102,7 @@ For a more interactive navigation of the remote see the
|
|||
var err error
|
||||
outFile, err = os.Create(outFileName)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create output file: %v", err)
|
||||
return fmt.Errorf("failed to create output file: %w", err)
|
||||
}
|
||||
}
|
||||
opts.VerSort = opts.VerSort || sort == "version"
|
||||
|
@ -209,7 +209,7 @@ func (dirs Fs) Stat(filePath string) (fi os.FileInfo, err error) {
|
|||
}
|
||||
_, entry := dirtree.DirTree(dirs).Find(filePath)
|
||||
if entry == nil {
|
||||
return nil, fmt.Errorf("Couldn't find %q in directory cache", filePath)
|
||||
return nil, fmt.Errorf("couldn't find %q in directory cache", filePath)
|
||||
}
|
||||
return &FileInfo{entry}, nil
|
||||
}
|
||||
|
@ -221,7 +221,7 @@ func (dirs Fs) ReadDir(dir string) (names []string, err error) {
|
|||
dir = strings.TrimLeft(dir, "/")
|
||||
entries, ok := dirs[dir]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("Couldn't find directory %q", dir)
|
||||
return nil, fmt.Errorf("couldn't find directory %q", dir)
|
||||
}
|
||||
for _, entry := range entries {
|
||||
names = append(names, path.Base(entry.Remote()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue