aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-03-21 17:03:57 -0500
committerJack Nagel2013-03-21 17:04:54 -0500
commitd274f7a8a0db4eef81d0b754e2b5e1c135fff10b (patch)
treec5778c21e0310be97d28cbeee3f2ea055a746d6c /Library
parentad622a9e877d714b3c72ec12a3a7eda7f07eb045 (diff)
downloadbrew-d274f7a8a0db4eef81d0b754e2b5e1c135fff10b.tar.bz2
versions: remove unnecessary variable
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/versions.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index ae8c321ad..40e908172 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -69,8 +69,7 @@ class Formula
# Unload the class so Formula#version returns the correct value
begin
Object.send(:remove_const, Formula.class_s(name))
- version = nostdout { Formula.factory(path).version }
- version
+ nostdout { Formula.factory(path).version }
rescue SyntaxError, TypeError, NameError, ArgumentError
# We rescue these so that we can skip bad versions and
# continue walking the history