Splatted parameter is always an array
This commit is contained in:
parent
13cfc013f4
commit
7cdf400762
@ -356,7 +356,7 @@ class Pathname
|
||||
|
||||
# Writes an exec script in this folder for each target pathname
|
||||
def write_exec_script *targets
|
||||
targets = [targets].flatten
|
||||
targets.flatten!
|
||||
if targets.empty?
|
||||
opoo "tried to write exec sripts to #{self} for an empty list of targets"
|
||||
end
|
||||
|
||||
@ -781,7 +781,7 @@ class Formula
|
||||
end
|
||||
|
||||
def skip_clean *paths
|
||||
paths = [paths].flatten
|
||||
paths.flatten!
|
||||
|
||||
# :all is deprecated though
|
||||
if paths.include? :all
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user