From 8f23fce49593deaab5de6c79598389fe86cd6e84 Mon Sep 17 00:00:00 2001 From: d9k Date: Fri, 4 May 2018 15:04:50 +0300 Subject: Added stackable function `optional()`: trying to fix travis warning --- valua.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/valua.lua b/valua.lua index 11d4741..c9589f9 100644 --- a/valua.lua +++ b/valua.lua @@ -54,7 +54,7 @@ function valua:new(obj) -- __call will run only when the value is validated self.__call = function(t,value) local res = true - local fres, err + local fres, err = nil if value == nil and t.allow_nil then return res, err -- cgit v1.2.3-70-g09d2