From 2420247b341fd78ccfdf67f2f9975f0f3a883753 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Wed, 9 Oct 2024 09:31:44 +0200 Subject: Minor code style fix --- src/compat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/compat.cpp b/src/compat.cpp index 1f8eaf9..8d0bc19 100644 --- a/src/compat.cpp +++ b/src/compat.cpp @@ -48,9 +48,9 @@ LuaType luaG_getmodule(lua_State* const L_, std::string_view const& name_) int luaL_getsubtable(lua_State* const L_, StackIndex const idx_, char const* fname_) { lua_getfield(L_, idx_, fname_); - if (lua_istable(L_, -1)) + if (lua_istable(L_, -1)) { return 1; /* table already there */ - else { + } else { lua_pop(L_, 1); /* remove previous result */ StackIndex const _absidx{ luaG_absindex(L_, idx_) }; lua_newtable(L_); -- cgit v1.2.3-55-g6feb