From d274f7a8a0db4eef81d0b754e2b5e1c135fff10b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 21 Mar 2013 17:03:57 -0500 Subject: [PATCH] versions: remove unnecessary variable --- Library/Homebrew/cmd/versions.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index ae8c321ad9..40e908172f 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