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
commitbf5d55a9d795aec913962103431d446b9ed2250e (patch)
tree3d31b8e74b4f04567e293ec4963374705efff555 /Library
parentb7aedb8ec9761026146dc8527cebc45ba5cb6025 (diff)
downloadhomebrew-bf5d55a9d795aec913962103431d446b9ed2250e.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