From da51092f9aa2a27de134eb0fc157c7257e2cc565 Mon Sep 17 00:00:00 2001 From: bluehenggege Date: Tue, 16 Aug 2022 10:46:00 +0800 Subject: [PATCH] fix: when value is false, judge error --- src/lustache/context.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lustache/context.lua b/src/lustache/context.lua index cbf2717..c228d92 100755 --- a/src/lustache/context.lua +++ b/src/lustache/context.lua @@ -40,7 +40,7 @@ function context:lookup(name) value = context.view[name] end - if value then + if value ~= nil then break end