Splatted parameter is always an array

This commit is contained in:
Jack Nagel 2013-06-20 16:18:01 -05:00
parent 13cfc013f4
commit 7cdf400762
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -781,7 +781,7 @@ class Formula
end
def skip_clean *paths
paths = [paths].flatten
paths.flatten!
# :all is deprecated though
if paths.include? :all