Skip to content
Snippets Groups Projects
Unverified Commit 93430e6a authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #4789 from reitermarkus/avoid-network-call

Avoid network call in `#initialize`.
parents f66ce9ce b54682f7
No related branches found
No related tags found
No related merge requests found
......@@ -188,11 +188,8 @@ class VCSDownloadStrategy < AbstractDownloadStrategy
end
class AbstractFileDownloadStrategy < AbstractDownloadStrategy
attr_reader :temporary_path
def initialize(url, name, version, **meta)
super
@temporary_path = Pathname.new("#{cached_location}.incomplete")
def temporary_path
@temporary_path ||= Pathname.new("#{cached_location}.incomplete")
end
def symlink_location
......
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