mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
Fixed config loading issue
This commit is contained in:
parent
a64cafd086
commit
08d9de64e0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/TODO.md
|
||||
/neonmodem
|
||||
/posts.db
|
||||
/neonmodem.toml
|
||||
|
@ -148,8 +148,6 @@ func Load() (Config, error) {
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
|
||||
return Config{}, err
|
||||
} else {
|
||||
return Config{}, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user