aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-07-22 21:26:42 -0500
committerJack Nagel2013-07-22 21:26:42 -0500
commit1fb4cd501b58aeba30dbf903a496d1606da27868 (patch)
treecb8d77ee5adb4fde44d9799167ce0d418ac566f6
parent9942bcc21e8ef57180fc625661d5089efca77808 (diff)
downloadbrew-1fb4cd501b58aeba30dbf903a496d1606da27868.tar.bz2
Pathname#write: don't check ARGV.force?
Closes Homebrew/homebrew#21390.
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 49eb6e6ec..b143b9225 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -99,7 +99,7 @@ class Pathname
# we assume this pathname object is a file obviously
def write content
- raise "Will not overwrite #{to_s}" if exist? and not ARGV.force?
+ raise "Will not overwrite #{to_s}" if exist?
dirname.mkpath
File.open(self, 'w') {|f| f.write content }
end