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
commitd51aa24f9c149b70ba0cbecb33045c4e201b3cba (patch)
treeacff54473bd94fee15797d865d61942858a13334 /Library
parent96d166ef01cdedf375bc83e63e57871ff49d8912 (diff)
downloadhomebrew-d51aa24f9c149b70ba0cbecb33045c4e201b3cba.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