Skip to content

Commit 8db5b2c

Browse files
committed
Fix incorrect autocorrection
1 parent dc84436 commit 8db5b2c

File tree

1 file changed

+5
-3
lines changed
  • lib/super_diff/equality_matchers

1 file changed

+5
-3
lines changed

lib/super_diff/equality_matchers/base.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ def self.applies_to?(_value)
1919
)
2020

2121
def call
22-
fail unless expected == actual
23-
24-
''
22+
if expected == actual # rubocop:disable Style/GuardClause `fail` is not Kernel#fail
23+
''
24+
else
25+
fail
26+
end
2527
end
2628

2729
protected

0 commit comments

Comments
 (0)