Skip to content

Commit

Permalink
Update apis/v1beta1/config.go
Browse files Browse the repository at this point in the history
Co-authored-by: Mikołaj Świątek <[email protected]>
  • Loading branch information
frzifus and swiatekm authored Oct 18, 2024
1 parent 5e93b88 commit 31488ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/v1beta1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,11 @@ func (s *Service) MetricsEndpoint() (string, int32, error) {
return "", 0, err
}

if host != "" {
defaultAddr = host
if host == "" {
host = defaultAddr
}

return defaultAddr, int32(i64), nil
return host, int32(i64), nil
}

// ApplyDefaults inserts configuration defaults if it has not been set.
Expand Down

0 comments on commit 31488ac

Please sign in to comment.