From a423e24dbf670ff750d7d933f268b40bf06adda2 Mon Sep 17 00:00:00 2001 From: Pelanyo Kamara Date: Sun, 21 Nov 2021 23:31:20 +0000 Subject: [PATCH] inline redundant variable --- VM/src/laux.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/VM/src/laux.cpp b/VM/src/laux.cpp index a6d5825f..af7f218f 100644 --- a/VM/src/laux.cpp +++ b/VM/src/laux.cpp @@ -189,8 +189,7 @@ LUALIB_API bool luaL_checkboolean(lua_State* L, int narg) // all other truthy/falsy values. If the desired result // is true if value is present then lua_toboolean should // directly be used instead. - const auto isbool = lua_isboolean(L, narg); - if (!isbool) + if (!lua_isboolean(L, narg)) tag_error(L, narg, LUA_TBOOLEAN); return lua_toboolean(L, narg); }