Skip to content
Snippets Groups Projects
Commit 1426b92a authored by Jack Nagel's avatar Jack Nagel
Browse files

Only dup and shift when specs hash is populated

parent 0fb4f9c4
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,8 @@ require 'vendor/multi_json'
class AbstractDownloadStrategy
def initialize name, package
@url = package.url
@spec, @ref = package.specs.dup.shift
specs = package.specs
@spec, @ref = specs.dup.shift unless specs.empty?
end
def expand_safe_system_args args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment