From 8b7f38faf0e770c8446f328364e639e78307f062 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 14 Dec 2020 02:16:08 +0100 Subject: [PATCH] Fix code style. --- Library/Homebrew/livecheck/livecheck.rb | 2 +- Library/Homebrew/livecheck/strategy.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index f29c62144c..e6f3bede10 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -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 diff --git a/Library/Homebrew/livecheck/strategy.rb b/Library/Homebrew/livecheck/strategy.rb index 91b32c0fa3..5527166bb9 100644 --- a/Library/Homebrew/livecheck/strategy.rb +++ b/Library/Homebrew/livecheck/strategy.rb @@ -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.