Skip to content

Commit 0478db9

Browse files
committed
fixing shadowed variable
1 parent 7f76bf3 commit 0478db9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/chatops/controller/test_case_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def chat(message, user, room_id = "123")
5050

5151
named_params, command = extract_named_params(message)
5252

53-
matcher = matchers.find { |matcher| matcher["regex"].match(command) }
53+
matcher = matchers.find { |m| m["regex"].match(command) }
5454

5555
raise NoMatchingCommandRegex.new("No command matches '#{command}'") unless matcher
5656

0 commit comments

Comments
 (0)