Skip to content

Commit

Permalink
No need for !! here.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Jul 18, 2016
1 parent 82146c8 commit 91ed6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/core/metadata_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def filter_applies?(key, filter_value, metadata)

meta_value = metadata.fetch(key) { return false }

return true if TrueClass === filter_value && !!meta_value
return true if TrueClass === filter_value && meta_value
return proc_filter_applies?(key, filter_value, metadata) if Proc === filter_value
return filter_applies_to_any_value?(key, filter_value, metadata) if Array === meta_value

Expand Down

0 comments on commit 91ed6c2

Please sign in to comment.