From b80ea9348615cd47185bcb80a7d6140ac6982856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Mon, 15 Jul 2024 21:23:46 +0200 Subject: [PATCH] config: Correct typo in `validatePositiveValue()` --- internal/config/settings.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/settings.go b/internal/config/settings.go index 92dec00eb..b8cfcd516 100644 --- a/internal/config/settings.go +++ b/internal/config/settings.go @@ -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") }