Skip to content

Commit 40da1a7

Browse files
committed
[rb] do not delete the reason message from the guard, we need it later
1 parent 02a2bfc commit 40da1a7

File tree

1 file changed

+1
-1
lines changed
  • rb/lib/selenium/webdriver/support/guards

1 file changed

+1
-1
lines changed

rb/lib/selenium/webdriver/support/guards/guard.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def initialize(guarded, type, guards = nil)
3636
@messages[:unknown] = 'TODO: Investigate why this is failing and file a bug report'
3737
@type = type
3838

39-
@reason = @guarded.delete(:reason)
39+
@reason = @guarded[:reason]
4040
end
4141

4242
def message

0 commit comments

Comments
 (0)