inline redundant variable

This commit is contained in:
Pelanyo Kamara 2021-11-21 23:31:20 +00:00
parent 0192eff182
commit a423e24dbf
No known key found for this signature in database
GPG key ID: 848AD95363B749B5

View file

@ -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);
}