Skip to content

Commit

Permalink
refactor getting prepared config
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Sep 22, 2024
1 parent e83aa18 commit 2aa0c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ func getPreparedConfig(config Config) (*Config, error) {
if err := config.Validate(); err != nil {
return &config, err
}
cfg, err := buildCompiledRegexes(config)
config, err := buildCompiledRegexes(config)
if err != nil {
return &config, err
}
return &cfg, nil
return &config, nil
}

// Reload node config.
Expand Down

0 comments on commit 2aa0c85

Please sign in to comment.