Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix: always enable dev mode in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jun 1, 2021
1 parent f531bd0 commit 0815d37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/app/config.go
Expand Up @@ -58,6 +58,10 @@ func ReadConfig(debug bool) (*Config, error) {
var c Config
err := envconfig.Process(configPrefix, &c)

if debug {
c.Dev = true
}

return &c, err
}

Expand Down

0 comments on commit 0815d37

Please sign in to comment.