Skip to content

Commit b80ea93

Browse files
committed
config: Correct typo in validatePositiveValue()
1 parent 33b7c9d commit b80ea93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/config/settings.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,13 @@ func OptionIsValid(option string, value interface{}) error {
480480
// Option validators
481481

482482
func validatePositiveValue(option string, value interface{}) error {
483-
tabsize, ok := value.(float64)
483+
nativeValue, ok := value.(float64)
484484

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

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

0 commit comments

Comments
 (0)