Skip to content

Commit

Permalink
ruleset: remove duplicated argument check
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <[email protected]>
  • Loading branch information
hexian000 committed Nov 22, 2024
1 parent b30773a commit fdbff60
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ruleset/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ static int api_invoke(lua_State *restrict L)
{
size_t len;
const char *code = luaL_checklstring(L, 1, &len);
(void)luaL_checkstring(L, 2);
const int n = lua_gettop(L) - 1;
if (!aux_todialreq(L, n)) {
lua_pushliteral(L, ERR_INVALID_INVOKE);
Expand Down

0 comments on commit fdbff60

Please sign in to comment.