1
0
Fork 0
mirror of https://github.com/Luzifer/envrun.git synced 2024-11-09 23:00:07 +00:00

Fix linter advices

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-06-01 18:22:53 +02:00
parent 0f0f03477b
commit 3cd020d119
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -115,13 +115,13 @@ func main() {
log.Error("Unclean exit with exit-code != 0")
os.Exit(1)
default:
log.WithError(err).Error("An unknown error ocurred")
log.WithError(err).Error("An unknown error occurred")
os.Exit(2)
}
}
func loadEnvFromFile(filename, passphrase string, decrypt decryptMethod) (map[string]string, error) {
body, err := ioutil.ReadFile(cfg.EnvFile)
body, err := ioutil.ReadFile(filename)
if err != nil {
return nil, fmt.Errorf("Could not read env-file: %s", err)
}