From 117977ca3258d0f94d730ea1a0426c045a39f79c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 21 Feb 2013 22:17:12 -0600 Subject: 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(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6f8fc91db..eff006cdc 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 -- cgit v1.2.3