Addressed style issues

This commit is contained in:
Zach Auten 2019-03-06 18:06:50 -05:00
parent dd4daa247f
commit 18a20986e7
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ module Cask
def self.get_info(cask) def self.get_info(cask)
output = title_info(cask) + "\n" 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) output << installation_info(cask)
repo = repo_info(cask) repo = repo_info(cask)
output << repo unless repo.nil? output << repo unless repo.nil?

View File

@ -192,6 +192,7 @@ module Homebrew
def cask_reason(name, silent: false) def cask_reason(name, silent: false)
return if silent return if silent
cask = Cask::CaskLoader.load(name) cask = Cask::CaskLoader.load(name)
reason = "Found the following cask named \"#{name}\" instead:\n" reason = "Found the following cask named \"#{name}\" instead:\n"
reason << Cask::Cmd::Info.get_info(cask) unless silent reason << Cask::Cmd::Info.get_info(cask) unless silent