[Lua] Suppress nodiscard warning

This commit is contained in:
Celtic Minstrel 2024-02-04 14:39:33 -05:00
parent 8276fd2e4b
commit c2f50062d2

View file

@ -588,7 +588,7 @@ function ai_helper.split(str, sep)
sep = sep or ","
local fields = {}
local pattern = string.format("([^%s]+)", sep)
string.gsub(str, pattern, function(c) fields[#fields+1] = c end)
local _ = string.gsub(str, pattern, function(c) fields[#fields+1] = c end)
return fields
end