Fixed errcheck linter complaints

This commit is contained in:
2019-06-05 15:45:54 +09:00
parent 190a85fe08
commit 940e949a30
15 changed files with 112 additions and 33 deletions

View File

@ -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")