mirror of
https://github.com/Luzifer/envrun.git
synced 2024-12-29 22:41:17 +00:00
Fix linter advices
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0f0f03477b
commit
3cd020d119
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue