Skip to content

Commit

Permalink
Fixed config loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Jan 9, 2023
1 parent a64cafd commit 08d9de6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/TODO.md
/neonmodem
/posts.db
/neonmodem.toml
2 changes: 0 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 08d9de6

Please sign in to comment.