Fixed errcheck linter complaints
This commit is contained in:
@ -35,7 +35,7 @@ func main() {
|
||||
func readFiles(root string, onFile func(string) error) {
|
||||
count := 0
|
||||
|
||||
filepath.Walk(root, func(name string, info os.FileInfo, err error) error {
|
||||
err := filepath.Walk(root, func(name string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
color.Red(err.Error())
|
||||
return err
|
||||
@ -61,6 +61,10 @@ func readFiles(root string, onFile func(string) error) {
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Erase line
|
||||
print("\r\033[2K")
|
||||
|
||||
|
Reference in New Issue
Block a user