From: Tobias Ulmer Date: Wed, 29 Jan 2014 14:00:37 +0000 (+0100) Subject: Fix operator precedence in licence validation X-Git-Tag: e2factory-2.3.14p0~5 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=dd56877cb9353c2789fadf87648c6b0fb449f9a2;p=e2factory.git Fix operator precedence in licence validation Signed-off-by: Tobias Ulmer --- diff --git a/local/e2tool.lua b/local/e2tool.lua index 1f00f94..afc2ba3 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -1573,7 +1573,7 @@ local function check_licence(info, l) end if not lic.files then e:append("no files attribute") - elseif not type(lic.files) == "table" then + elseif type(lic.files) ~= "table" then e:append("files attribute is not a table") else for _,f in ipairs(lic.files) do