Removes unused local variable

This commit is contained in:
nnposter 2016-12-17 21:22:02 +00:00
parent 7a865e8b74
commit 8cf3d98fe9

View file

@ -221,7 +221,7 @@ function strsplit(pattern, text)
assert(pattern ~= "", "delimiter matches empty string!");
while true do
local first, last, match = text:find(pattern, pos);
local first, last = text:find(pattern, pos);
if first then -- found?
list[#list+1] = text:sub(pos, first-1);
pos = last+1;