tokenise_commands: fix luacheck issue

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 19:56:44 +01:00
parent 0164a9b9eb
commit f0e1111b7c
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -40,7 +40,7 @@ local function tokenise(str)
-- Decrease the nested depth -- Decrease the nested depth
nested_depth = nested_depth - 1 nested_depth = nested_depth - 1
-- Pop the start of this block off the stack and find this block's contents -- Pop the start of this block off the stack and find this block's contents
block_start = table.remove(nested_stack, #nested_stack) local block_start = table.remove(nested_stack, #nested_stack)
local substr = str:sub(block_start, nextpos - 1) local substr = str:sub(block_start, nextpos - 1)
if #substr > 0 and nested_depth == 0 then table.insert(result, substr) end if #substr > 0 and nested_depth == 0 then table.insert(result, substr) end
elseif char == "{" then elseif char == "{" then