fix staticcheck faulures in 'cmd' pkg

This commit is contained in:
carlory
2019-08-26 15:12:07 +08:00
parent e680ad7156
commit 2fe82075b4
4 changed files with 4 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ var (
)
func newWalkFunc(invalidLink *bool, client *http.Client) filepath.WalkFunc {
return func(filePath string, info os.FileInfo, err error) error {
return func(filePath string, info os.FileInfo, initErr error) error {
hasSuffix := false
for _, suffix := range *fileSuffix {
hasSuffix = hasSuffix || strings.HasSuffix(info.Name(), suffix)