Skip to content

Commit

Permalink
docs: Add missing description for ui pkg ValidateAndSetDefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
TwiN committed Apr 9, 2024
1 parent dc9cddf commit 7cf2b42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var (
ErrInvalidBadgeResponseTimeConfig = errors.New("invalid response time badge configuration: expected parameter 'response-time' to have 5 ascending numerical values")
)

// ValidateAndSetDefaults validates the UI configuration and sets the default values
func (config *Config) ValidateAndSetDefaults() error {
if config.Badge != nil {
if len(config.Badge.ResponseTime.Thresholds) != 5 {
Expand Down

0 comments on commit 7cf2b42

Please sign in to comment.