aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-10-19 03:01:03 +0100
committerMax Howell2009-10-19 04:02:48 +0100
commit995c2d5a13d59f9e0761248fd5567e3f3a8c98ab (patch)
tree2371a85f2082cce6d20339f6ddfd81c117814ae8 /Library
parentef02031d7cd1ef048c53cf940b208a6070451b8d (diff)
downloadbrew-995c2d5a13d59f9e0761248fd5567e3f3a8c98ab.tar.bz2
Remove assignment to unused temporary variable
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index fc5cdfef0..bf39c1f43 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