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