aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-02-06 22:33:01 -0500
committerJack Nagel2015-02-07 11:02:35 -0500
commit4851b1e7a877246d57ca87e9e48b7d962f100015 (patch)
treecb3fdb17efecedefb34bb92cc4a625229dbce0c0 /Library
parent5e62d7503e57ed166e69869c842eaa253f90654a (diff)
downloadbrew-4851b1e7a877246d57ca87e9e48b7d962f100015.tar.bz2
Use a local instead of an instance variable
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 1236eaa2f..dd90d72ee 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -621,7 +621,7 @@ class Formula
end
def run_test
- @oldhome = ENV["HOME"]
+ old_home = ENV["HOME"]
self.build = Tab.for_formula(self)
mktemp do
@testpath = Pathname.pwd
@@ -630,7 +630,7 @@ class Formula
end
ensure
@testpath = nil
- ENV["HOME"] = @oldhome
+ ENV["HOME"] = old_home
end
def test_defined?