mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 07:00:24 +09:00
config: Correct typo in validatePositiveValue()
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user