From 7cf2b427c90b6d3614626cdca90a919db43180f5 Mon Sep 17 00:00:00 2001 From: TwiN Date: Tue, 9 Apr 2024 18:56:33 -0400 Subject: [PATCH] docs: Add missing description for ui pkg ValidateAndSetDefaults --- core/ui/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/ui/ui.go b/core/ui/ui.go index c30de942..c7635ad2 100644 --- a/core/ui/ui.go +++ b/core/ui/ui.go @@ -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 {