Skip to content

Commit

Permalink
Add local to local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Riyyi authored Apr 22, 2024
1 parent 86f6822 commit 4d0fb63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luaunit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3409,7 +3409,7 @@ end
end

function M.LuaUnit:runSuite( ... )
testNames = self:initFromArguments(...)
local testNames = self:initFromArguments(...)
self:registerSuite()
self:internalRunSuiteByNames( testNames or M.LuaUnit.collectTests() )
self:unregisterSuite()
Expand All @@ -3426,7 +3426,7 @@ end
return the number of failures and errors, 0 meaning success
]]
-- parse the command-line arguments
testNames = self:initFromArguments( commandLineArguments )
local testNames = self:initFromArguments( commandLineArguments )
self:registerSuite()
self:internalRunSuiteByInstances( listOfNameAndInst )
self:unregisterSuite()
Expand Down

0 comments on commit 4d0fb63

Please sign in to comment.