summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/uci.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lua/uci.c b/lua/uci.c
index 1cb31a5..47d59c8 100644
--- a/lua/uci.c
+++ b/lua/uci.c
@@ -113,11 +113,8 @@ find_package(lua_State *L, struct uci_context *ctx, const char *str, bool al)
goto done;
}
- if (al == true)
+ if (al)
uci_load(ctx, name, &p);
- else if (al) {
- uci_load(ctx, name, &p);
- }
done:
if (name != str)