fix: allow blank NIXFIG_FMT to disable formatting

Signed-off-by: jolheiser <john.olheiser@gmail.com>
jolheiser 2024-06-19 20:41:38 -05:00
parent d3931c4481
commit f34fba6b99
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 1 additions and 1 deletions

View File

@ -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, " ")
}
}