Skip to content

Commit 533feff

Browse files
committed
fix(client/main): don't do a explicit nil check
1 parent ffe025c commit 533feff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end)
1616

1717
-- TODO: Better implementation of this?
1818
RegisterCommand('vol', function(_, args)
19-
if args[1] ~= nil then
19+
if args[1] then
2020
setVolume(args[1])
2121
end
2222
end)

0 commit comments

Comments
 (0)