summaryrefslogtreecommitdiff
path: root/src/ldblib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-10 02:08:53 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-10 02:36:36 +1100
commit562ad6f874564c3770d096711f443b49f59ef686 (patch)
tree910d919dcee89c71eaeeec8465152add19dc4e9f /src/ldblib.js
parent54c4a6a66778466630cca7a9223c760942c7ab70 (diff)
downloadfengari-562ad6f874564c3770d096711f443b49f59ef686.tar.gz
fengari-562ad6f874564c3770d096711f443b49f59ef686.tar.bz2
fengari-562ad6f874564c3770d096711f443b49f59ef686.zip
src/: Fix some linter complaints
Diffstat (limited to 'src/ldblib.js')
-rw-r--r--src/ldblib.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ldblib.js b/src/ldblib.js
index 5912b5a..96db3c7 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -46,11 +46,11 @@ const db_getuservalue = function(L) {
const db_setuservalue = function(L) {
- lauxlib.luaL_checktype(L, 1, lua.LUA_TUSERDATA);
- lauxlib.luaL_checkany(L, 2);
- lua.lua_settop(L, 2);
- lua.lua_setuservalue(L, 1);
- return 1;
+ lauxlib.luaL_checktype(L, 1, lua.LUA_TUSERDATA);
+ lauxlib.luaL_checkany(L, 2);
+ lua.lua_settop(L, 2);
+ lua.lua_setuservalue(L, 1);
+ return 1;
};
/*
@@ -247,9 +247,9 @@ const checkupval = function(L, argf, argnup) {
};
const db_upvalueid = function(L) {
- let n = checkupval(L, 1, 2);
- lua.lua_pushlightuserdata(L, lua.lua_upvalueid(L, 1, n));
- return 1;
+ let n = checkupval(L, 1, 2);
+ lua.lua_pushlightuserdata(L, lua.lua_upvalueid(L, 1, n));
+ return 1;
};
const db_upvaluejoin = function(L) {