mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
config: Correct typo in validatePositiveValue()
This commit is contained in:
parent
33b7c9db7c
commit
b80ea93486
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user