aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-20 16:18:01 -0500
committerJack Nagel2013-06-20 16:22:55 -0500
commit7a9ed17fbbf09b2aeae134c03eb3b0478933ab58 (patch)
treedeff47c2aab3d6621930dc775630d2c99090256d /Library
parent21158fc979b197fd320cff18116ef6c6a1a648b2 (diff)
downloadhomebrew-7a9ed17fbbf09b2aeae134c03eb3b0478933ab58.tar.bz2
Splatted parameter is always an array
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
-rw-r--r--Library/Homebrew/formula.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 1b0bf8b27..eed5d0383 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -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
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 6026f5b6e..b7739a74a 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -781,7 +781,7 @@ class Formula
end
def skip_clean *paths
- paths = [paths].flatten
+ paths.flatten!
# :all is deprecated though
if paths.include? :all