From e933d1a678ee76c4e449de7ed457fd661f229335 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 4 Nov 2008 23:55:49 +0000 Subject: [PATCH] * luci/libs/uvl: remove max_nil option for now --- libs/uvl/luasrc/uvl.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index b34f66bc18..5c6ea05f8d 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -366,7 +366,7 @@ function UVL._validate_option( self, option, nodeps ) end local w = tonumber(v) - + if option:scheme('minimum') then if not w or w < option:scheme('minimum') then return false, option:error(ERR.OPT_RANGE(option)) @@ -378,12 +378,6 @@ function UVL._validate_option( self, option, nodeps ) return false, option:error(ERR.OPT_RANGE(option)) end end - - if option:scheme('max_nil') then - if v and (not w or w > tonumber(option:scheme('max_nil'))) then - return false, option:error(ERR.OPT_RANGE(option)) - end - end end end -- 2.30.2