diff options
| author | d9k <d9k@ya.ru> | 2018-05-04 15:04:50 +0300 |
|---|---|---|
| committer | d9k <d9k@ya.ru> | 2018-05-04 15:04:50 +0300 |
| commit | 8f23fce49593deaab5de6c79598389fe86cd6e84 (patch) | |
| tree | 3d3a16be7a0ea3b3295a1b0d8afa4cbbb83b83ed | |
| parent | 9ffa698e15deed8acbd04507371e7c0e666f1bf1 (diff) | |
| download | valua-8f23fce49593deaab5de6c79598389fe86cd6e84.tar.gz valua-8f23fce49593deaab5de6c79598389fe86cd6e84.tar.bz2 valua-8f23fce49593deaab5de6c79598389fe86cd6e84.zip | |
Added stackable function `optional()`: trying to fix travis warning
| -rw-r--r-- | valua.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
