Skip to content

Commit

Permalink
fix: cfg bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangliang committed Mar 8, 2022
1 parent 8db206a commit d503c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewAgent(engine *Engine, cfg *viper.Viper, opts ...Option) *Agent {
log.Panic("absent plans")
}
if cfg == nil {
cfg := viper.New()
cfg = viper.New()
cfg.SetConfigType("prop")
envs := os.Environ()
for _, env := range envs {
Expand Down

0 comments on commit d503c2e

Please sign in to comment.