Skip to content

Commit b28744b

Browse files
committed
Improved variable name
1 parent aa289f1 commit b28744b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mach/Expectation.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ function expectation:when(thunk)
4343
error('incomplete expectation', 2)
4444
end
4545

46-
local current = 1
46+
local current_call_index = 1
4747

4848
local function called(m, name, args)
4949
local valid_function_found = false
5050
local incomplete_expectation_found = false
5151

52-
for i = current, #self._calls do
52+
for i = current_call_index, #self._calls do
5353
local call = self._calls[i]
5454

5555
if call:function_matches(m) then
@@ -61,7 +61,7 @@ function expectation:when(thunk)
6161
end
6262

6363
if call:has_fixed_order() then
64-
current = i
64+
current_call_index = i
6565
end
6666

6767
table.remove(self._calls, i)

0 commit comments

Comments
 (0)