diff --git a/nixfig.go b/nixfig.go index d89e98b..b4ec108 100644 --- a/nixfig.go +++ b/nixfig.go @@ -31,7 +31,7 @@ func init() { break } } - if envPath, ok := os.LookupEnv("NIXFIG_FMT"); ok { + if envPath, ok := os.LookupEnv("NIXFIG_FMT"); ok && envPath != "" { Fmt = strings.Split(envPath, " ") } }