Add and enforce golangci-lint (#16)

This commit is contained in:
Dave Gallant
2020-07-05 22:44:05 -04:00
committed by GitHub
parent 2ec9bca107
commit d9474be233
13 changed files with 141 additions and 59 deletions

View File

@@ -9,8 +9,5 @@ import (
func Exists(filename string) bool {
var AppFs = afero.NewOsFs()
_, err := AppFs.Stat(filename)
if err != nil {
return false
}
return true
return err == nil
}