Skip to content

Commit

Permalink
cfg: fix LoadConfig from http
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Feb 8, 2022
1 parent 2c52d89 commit c649ac5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ func (c *Config) LoadConfig() error {
if err := c.readFromHttp(); err != nil {
return err
}
}
if err := c.readFromFile(); err != nil {
return err
} else {
if err := c.readFromFile(); err != nil {
return err
}
}
return c.Validate()
}
Expand Down

0 comments on commit c649ac5

Please sign in to comment.