versions: remove unnecessary variable
This commit is contained in:
parent
ad622a9e87
commit
d274f7a8a0
@ -69,8 +69,7 @@ class Formula
|
|||||||
# Unload the class so Formula#version returns the correct value
|
# Unload the class so Formula#version returns the correct value
|
||||||
begin
|
begin
|
||||||
Object.send(:remove_const, Formula.class_s(name))
|
Object.send(:remove_const, Formula.class_s(name))
|
||||||
version = nostdout { Formula.factory(path).version }
|
nostdout { Formula.factory(path).version }
|
||||||
version
|
|
||||||
rescue SyntaxError, TypeError, NameError, ArgumentError
|
rescue SyntaxError, TypeError, NameError, ArgumentError
|
||||||
# We rescue these so that we can skip bad versions and
|
# We rescue these so that we can skip bad versions and
|
||||||
# continue walking the history
|
# continue walking the history
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user