Addressed style issues
This commit is contained in:
parent
dd4daa247f
commit
18a20986e7
@ -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?
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user