Skip to content

Commit

Permalink
[rb] fix order of operations bug
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 2, 2019
1 parent 5a89b22 commit 1ed6eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/spec/rspec_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end

failure_message do
but_message = if @deprecations_found.empty? || @deprecations_found.nil?
but_message = if @deprecations_found.nil? || @deprecations_found.empty?
'no deprecations were found'
else
"instead these deprecations were found: [#{@deprecations_found.join(', ')}]"
Expand Down

0 comments on commit 1ed6eb5

Please sign in to comment.