Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
simplifies no_procs? and no_numbers? by removing star operator
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlHeitmann committed May 30, 2024
1 parent 4c22e70 commit 048ac0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/support/differ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def no_procs_and_no_numbers?(*args)
no_procs?(args) && no_numbers?(args)
end

def no_procs?(*args)
def no_procs?(args)
safely_flatten(args).none? { |a| Proc === a }
end

Expand All @@ -104,7 +104,7 @@ def any_multiline_strings?(*args)
all_strings?(*args) && safely_flatten(args).any? { |a| multiline?(a) }
end

def no_numbers?(*args)
def no_numbers?(args)
safely_flatten(args).none? { |a| Numeric === a }
end

Expand Down

0 comments on commit 048ac0a

Please sign in to comment.