From 95d4a258914867ef6237709dd03971dbec765324 Mon Sep 17 00:00:00 2001 From: Martin Schimandl Date: Sun, 23 Oct 2016 20:39:53 +0200 Subject: [PATCH] Fix linting errors --- Library/Homebrew/cask/lib/hbc/cli/reinstall.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb b/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb index c98249ca84..ac514bd506 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb @@ -14,8 +14,9 @@ module Hbc unless latest_installed_version.nil? latest_installed_cask_file = installed_cask.metadata_master_container_path - .join(latest_installed_version.join(File::Separator), - "Casks", "#{cask_token}.rb") + .join(latest_installed_version + .join(File::Separator), + "Casks", "#{cask_token}.rb") # use the same cask file that was used for installation, if possible installed_cask = Hbc.load(latest_installed_cask_file) if latest_installed_cask_file.exist?