From 4749339e5b7ed615eea9208f74e650f102e6cdb7 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 21 Feb 2013 22:17:12 -0600 Subject: [PATCH] Formula: fix class-level version accessor When given no arguments, this should return the stable version, but it hasn't since we stopped setting this direction in the class's @version variable. --- Library/Homebrew/formula.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6f8fc91dbd..eff006cdcd 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -723,7 +723,6 @@ private end def version val=nil - return @version if val.nil? @stable ||= SoftwareSpec.new @stable.version(val) end