Skip to content
Snippets Groups Projects
Unverified Commit 8b7f38fa authored by Markus Reiter's avatar Markus Reiter Committed by Sam Ford
Browse files

Fix code style.

parent 775c2fd2
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment