Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
lasith-kg committed Dec 25, 2023
1 parent bcce1ff commit 5f23bbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/config/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ func NewResizeThresholdValidator() *ResizeThresholdValidator {

func (rtv *ResizeThresholdValidator) Validate(c *Config) error {
if c.Defaults.ResizeThreshold < 0 || c.Defaults.ResizeThreshold > 100 {
return fmt.Errorf("🔴 '%g' (default) must be a floating point between (inclusive) 0 and 100", c.Defaults.ResizeThreshold)
return fmt.Errorf("🔴 '%g' (default) must be a floating point between 0 and 100 (inclusive)", c.Defaults.ResizeThreshold)
}
if c.overrides.ResizeThreshold < 0 || c.overrides.ResizeThreshold > 100 {
return fmt.Errorf("🔴 '%g' (-resize-threshold) must be a floating point between (inclusive) 0 and 100", c.overrides.ResizeThreshold)
return fmt.Errorf("🔴 '%g' (-resize-threshold) must be a floating point between 0 and 100 (inclusive)", c.overrides.ResizeThreshold)
}
for name, device := range c.Devices {
if device.ResizeThreshold < 0 || device.ResizeThreshold > 100 {
return fmt.Errorf("🔴 %s: '%g' must be a floating point between (inclusive) 0 and 100", name, device.ResizeThreshold)
return fmt.Errorf("🔴 %s: '%g' must be a floating point between 0 and 100 (inclusive)", name, device.ResizeThreshold)
}
}
return nil
Expand Down

0 comments on commit 5f23bbd

Please sign in to comment.