Skip to content

Commit

Permalink
config: Correct typo in validatePositiveValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar committed Aug 18, 2024
1 parent 33b7c9d commit b80ea93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,13 @@ func OptionIsValid(option string, value interface{}) error {
// Option validators

func validatePositiveValue(option string, value interface{}) error {
tabsize, ok := value.(float64)
nativeValue, ok := value.(float64)

if !ok {
return errors.New("Expected numeric type for " + option)
}

if tabsize < 1 {
if nativeValue < 1 {
return errors.New(option + " must be greater than 0")
}

Expand Down

0 comments on commit b80ea93

Please sign in to comment.