mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
fix: if author file was not set empty string not caught
This commit is contained in:
@@ -18,7 +18,9 @@ func Find_authorfile() string {
|
||||
cfg, _ := LoadConfig()
|
||||
cfg.SetGlobalConfig()
|
||||
}
|
||||
|
||||
if ConfigVar.Settings.AuthorFile == "" {
|
||||
panic("No author file found, please set the author_file in the config file or set the environment variable 'author_file'")
|
||||
}
|
||||
return ConfigVar.Settings.AuthorFile
|
||||
} else {
|
||||
return os.Getenv("author_file")
|
||||
|
||||
Reference in New Issue
Block a user