Skip to content

Commit

Permalink
refactor(root_config): remove redundant nil check in Init (#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juneezee authored Sep 4, 2023
1 parent fb6641d commit 6de48b3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions config/root_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,9 @@ func (rc *RootConfig) Init() error {
}

// init registry
registries := rc.Registries
if registries != nil {
for _, reg := range registries {
if err := reg.Init(); err != nil {
return err
}
for _, reg := range rc.Registries {
if err := reg.Init(); err != nil {
return err
}
}

Expand Down

0 comments on commit 6de48b3

Please sign in to comment.