Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Guisasola committed Jun 21, 2006
1 parent 8561525 commit d192ed2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lxplib.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** $Id: lxplib.c,v 1.14 2006-06-08 20:41:48 tomas Exp $
** $Id: lxplib.c,v 1.15 2006-06-21 21:33:52 tomas Exp $
** LuaExpat: Lua bind for Expat library
** See Copyright Notice in license.html
*/
Expand Down Expand Up @@ -341,8 +341,7 @@ static void checkcallbacks (lua_State *L) {
luaL_findstring(lua_tostring(L, -1), validkeys) < 0)
luaL_error(L, "invalid key `%s' in callback table", lua_tostring(L, -1));
#else
if (lua_type(L, -1) == LUA_TSTRING)
luaL_checkoption(L, -1, NULL, validkeys);
luaL_checkoption(L, -1, NULL, validkeys);
#endif
}
}
Expand Down

0 comments on commit d192ed2

Please sign in to comment.