style fixes
This commit is contained in:
parent
183fad82a6
commit
28490626fd
@ -42,9 +42,7 @@ module Cask
|
||||
|
||||
quarantine = true if quarantine.nil?
|
||||
|
||||
if Homebrew::EnvConfig.upgrade_greedy?
|
||||
greedy = true
|
||||
end
|
||||
greedy = true if Homebrew::EnvConfig.upgrade_greedy?
|
||||
|
||||
outdated_casks = if casks.empty?
|
||||
Caskroom.casks(config: Config.from_args(args)).select do |cask|
|
||||
|
||||
@ -84,7 +84,7 @@ module Homebrew
|
||||
Cask::DSL::Version.new(new_version)
|
||||
end
|
||||
|
||||
new_hash = unless (new_hash = args.sha256).nil?
|
||||
new_hash = unless (new_hash = args.sha265).nil?
|
||||
raise UsageError, "`--sha256` must not be empty." if new_hash.blank?
|
||||
|
||||
["no_check", ":no_check"].include?(new_hash) ? :no_check : new_hash
|
||||
|
||||
@ -239,9 +239,6 @@ module Homebrew
|
||||
HOMEBREW_GITHUB_PACKAGES_USER: {
|
||||
description: "Use this username when accessing the GitHub Packages Registry (where bottles may be stored).",
|
||||
},
|
||||
HOMEBREW_GREEDY: {
|
||||
description: "Pass this value to brew upgrade greedy.",
|
||||
},
|
||||
HOMEBREW_INSTALL_BADGE: {
|
||||
description: "Print this text before the installation summary of each successful build.",
|
||||
default_text: 'The "Beer Mug" emoji.',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user