Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Nov 4, 2024
1 parent 311a48a commit b55d4ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ func (k *Kod) setConfig(name string, cfg any) error {
return err
}

if name == "" {
return k.viper.Unmarshal(cfg)
}

return k.viper.UnmarshalKey(name, cfg)
}

Expand Down

0 comments on commit b55d4ed

Please sign in to comment.