[chore] Code refactoring
@@ -128,9 +128,7 @@ static int cp_getLuaExecContext(lua_State *L)
const char *vm_copy_service(lua_State *L, lua_State *main)
{
- int err;
int service;
- lua_cpcall(L, cp_getLuaExecContext, &service);
service = luaL_service(main);
if (service < 0) {
return "not permitted state referencing at global scope";
