aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord9k <d9k@ya.ru>2018-05-04 15:04:50 +0300
committerd9k <d9k@ya.ru>2018-05-04 15:04:50 +0300
commit8f23fce49593deaab5de6c79598389fe86cd6e84 (patch)
tree3d3a16be7a0ea3b3295a1b0d8afa4cbbb83b83ed
parent9ffa698e15deed8acbd04507371e7c0e666f1bf1 (diff)
downloadvalua-8f23fce49593deaab5de6c79598389fe86cd6e84.tar.gz
valua-8f23fce49593deaab5de6c79598389fe86cd6e84.tar.bz2
valua-8f23fce49593deaab5de6c79598389fe86cd6e84.zip
Added stackable function `optional()`: trying to fix travis warning
-rw-r--r--valua.lua2
1 files changed, 1 insertions, 1 deletions
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