lint: Don't set unused locals

Not a bug, but pointless to store this variable since it's not used.
This commit is contained in:
David Briscoe 2022-03-02 10:15:20 -08:00
parent 9083ee74ca
commit d6af9f74c5
2 changed files with 0 additions and 3 deletions

View File

@ -5,7 +5,6 @@ return {
"212", -- Unused argument.
"212/self", -- Unused argument self.
"213", -- Unused loop variable.
"231", -- Local variable is set but never accessed.
"311", -- Value assigned to a local variable is unused.
"631", -- Line is too long.
},

View File

@ -171,9 +171,7 @@ function stringx.deindent(s, keep_trailing_empty)
--split along newlines
local lines = stringx.split(s, newline)
--detect and strip any leading blank lines
local leading_newline = false
while lines[1] == "" do
leading_newline = true
table.remove(lines, 1)
end