Fix code style.
This commit is contained in:
parent
775c2fd245
commit
8b7f38faf0
@ -477,7 +477,7 @@ module Homebrew
|
||||
livecheck_strategy: livecheck_strategy,
|
||||
url_provided: livecheck_url.present?,
|
||||
regex_provided: livecheck_regex.present?,
|
||||
block_provided: livecheck.strategy_block.present?,
|
||||
block_provided: livecheck.strategy_block.present?,
|
||||
)
|
||||
strategy = Strategy.from_symbol(livecheck_strategy)
|
||||
strategy ||= strategies.first
|
||||
|
||||
@ -62,7 +62,7 @@ module Homebrew
|
||||
if strategy == PageMatch
|
||||
# Only treat the `PageMatch` strategy as usable if a regex is
|
||||
# present in the `livecheck` block
|
||||
next unless (regex_provided || block_provided)
|
||||
next unless regex_provided || block_provided
|
||||
elsif strategy == Sparkle && (livecheck_strategy || !url_provided)
|
||||
# Skip the `Sparkle` strategy if a strategy is specified explicitly
|
||||
# or if the URL is not specified explicitly.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user