diff --git a/cmd/drone-ntfy/main.go b/cmd/drone-ntfy/main.go index 245f2e4..bf78cf4 100644 --- a/cmd/drone-ntfy/main.go +++ b/cmd/drone-ntfy/main.go @@ -29,8 +29,8 @@ func main() { func loadCfg() Config { envErr := godotenv.Load() - if envErr != nil { - fmt.Printf("unable to load .env file: %e\n", envErr) + if envErr == nil { + fmt.Printf("loaded .env file.") } conf := Config{