From 18a20986e706e92c8112831aeef6512cad65a240 Mon Sep 17 00:00:00 2001 From: Zach Auten Date: Wed, 6 Mar 2019 18:06:50 -0500 Subject: [PATCH] Addressed style issues --- Library/Homebrew/cask/cmd/info.rb | 2 +- Library/Homebrew/missing_formula.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/cmd/info.rb b/Library/Homebrew/cask/cmd/info.rb index 3ee9cddf5e..8daa9ae1a4 100644 --- a/Library/Homebrew/cask/cmd/info.rb +++ b/Library/Homebrew/cask/cmd/info.rb @@ -28,7 +28,7 @@ module Cask def self.get_info(cask) output = title_info(cask) + "\n" - if cask.homepage then output << Formatter.url(cask.homepage) + "\n" end + output << Formatter.url(cask.homepage) + "\n" if cask.homepage output << installation_info(cask) repo = repo_info(cask) output << repo unless repo.nil? diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index 40dd44488c..82a8c7ec70 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -192,6 +192,7 @@ module Homebrew def cask_reason(name, silent: false) return if silent + cask = Cask::CaskLoader.load(name) reason = "Found the following cask named \"#{name}\" instead:\n" reason << Cask::Cmd::Info.get_info(cask) unless silent