diff options
| author | Jack Nagel | 2013-03-21 17:03:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-21 17:04:54 -0500 |
| commit | d274f7a8a0db4eef81d0b754e2b5e1c135fff10b (patch) | |
| tree | c5778c21e0310be97d28cbeee3f2ea055a746d6c /Library | |
| parent | ad622a9e877d714b3c72ec12a3a7eda7f07eb045 (diff) | |
| download | brew-d274f7a8a0db4eef81d0b754e2b5e1c135fff10b.tar.bz2 | |
versions: remove unnecessary variable
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/versions.rb | 3 |
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 |
