From 995c2d5a13d59f9e0761248fd5567e3f3a8c98ab Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 19 Oct 2009 03:01:03 +0100 Subject: [PATCH] Remove assignment to unused temporary variable --- Library/Homebrew/download_strategy.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index fc5cdfef0a..bf39c1f43e 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -24,12 +24,9 @@ class AbstractDownloadStrategy def initialize url, name, version, specs @url=url - case specs - when Hash + case specs when Hash @spec = specs.keys.first # only use first spec @ref = specs.values.first - else - spec = nil end @unique_token="#{name}-#{version}" unless name.to_s.empty? or name == '__UNKNOWN__' end