From f8b8186fa78f6b025f5d3f1956c74f1252d7e33f Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 5 Jul 2018 11:53:29 +0200 Subject: [PATCH] Reorder `downloader.cached_location` assignment. --- Library/Homebrew/formulary.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 112b296dc4..886f739d69 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -112,10 +112,10 @@ module Formulary resource = Resource.new(formula_name) { url bottle_name } resource.specs[:bottle] = true downloader = CurlDownloadStrategy.new resource.name, resource - @bottle_filename = downloader.cached_location - cached = @bottle_filename.exist? + cached = downloader.cached_location.exist? downloader.fetch ohai "Pouring the cached bottle" if cached + @bottle_filename = downloader.cached_location else @bottle_filename = Pathname(bottle_name).realpath end