diff options
author | Adam <adamdharrison@gmail.com> | 2022-09-27 18:10:09 -0400 |
---|---|---|
committer | Adam <adamdharrison@gmail.com> | 2022-09-27 18:10:09 -0400 |
commit | 8cf423ce22e03e3d5bfc87ece071bdc27a36ad8b (patch) | |
tree | 6650b17a211c670fb04a8e5dfe15c06a29a102a3 /lpm.c | |
parent | ffb465457b8ff65fba40cda84faa55d5aaad8510 (diff) | |
download | lite-xl-plugin-manager-8cf423ce22e03e3d5bfc87ece071bdc27a36ad8b.tar.gz lite-xl-plugin-manager-8cf423ce22e03e3d5bfc87ece071bdc27a36ad8b.zip |
Cleaned things up.
Diffstat (limited to 'lpm.c')
-rw-r--r-- | lpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,8 +66,8 @@ int lpm_symlink(lua_State* L) { } int lpm_chmod(lua_State* L) { - if (chmod(luaL_checkstring(L, 1)), luaL_checkinteger(L, 2)) - return luaL_error(L, "can't chmod %s: %s", luaL_checkstring(L, 1), strerror(errno)) + if (chmod(luaL_checkstring(L, 1), luaL_checkinteger(L, 2))) + return luaL_error(L, "can't chmod %s: %s", luaL_checkstring(L, 1), strerror(errno)); return 0; } |