fix: lint errors after upgrading golangci-lint (#12368)

This commit is contained in:
Harshavardhana
2021-05-25 14:17:33 -07:00
committed by GitHub
parent ed4941a5f3
commit 4fd1378242
13 changed files with 26 additions and 50 deletions
+1 -4
View File
@@ -315,10 +315,7 @@ func (c Config) DelFrom(r io.Reader) error {
return err
}
}
if err := scanner.Err(); err != nil {
return err
}
return nil
return scanner.Err()
}
// ReadConfig - read content from input and write into c.