From 0667178ab4217718d1623cfc44e140ef49e63f26 Mon Sep 17 00:00:00 2001 From: kevans Date: Tue, 21 Aug 2018 23:34:30 +0000 Subject: [PATCH] lualoader: Just compare expression directly --- stand/lua/core.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stand/lua/core.lua b/stand/lua/core.lua index 0aca945943710f..7c7fe4ab0aa9fa 100644 --- a/stand/lua/core.lua +++ b/stand/lua/core.lua @@ -328,8 +328,7 @@ end -- Is the menu skipped in the environment in which we've booted? function core.isMenuSkipped() - c = string.lower(loader.getenv("beastie_disable") or "") - return c == "yes" + return string.lower(loader.getenv("beastie_disable") or "") == "yes" end -- This may be a better candidate for a 'utility' module.