From 56ccdb78fa669d86c15c5f55c457dd236bb66263 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 14 Sep 2008 19:00:52 +0000 Subject: [PATCH] libs/uci: Cursor.delete_all: fix logical condition --- libs/uci/luasrc/model/uci.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/uci/luasrc/model/uci.lua b/libs/uci/luasrc/model/uci.lua index 2385cc37c..587cd63c0 100644 --- a/libs/uci/luasrc/model/uci.lua +++ b/libs/uci/luasrc/model/uci.lua @@ -77,7 +77,7 @@ function Cursor.delete_all(self, config, stype, comparator) local tbl = comparator comparator = function(section) for k, v in pairs(tbl) do - if not section[k] == v then + if section[k] ~= v then return false end end -- 2.25.1