From 82535696fad17f62c6f82fc4d7f43b9f02225da2 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 14 Dec 2020 04:35:26 +0100 Subject: [PATCH] Fix code style. --- Library/Homebrew/livecheck/strategy/sparkle.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/livecheck/strategy/sparkle.rb b/Library/Homebrew/livecheck/strategy/sparkle.rb index 1f1b8a8ade..b6147e5611 100644 --- a/Library/Homebrew/livecheck/strategy/sparkle.rb +++ b/Library/Homebrew/livecheck/strategy/sparkle.rb @@ -23,10 +23,10 @@ module Homebrew def self.match?(url) return false unless url.match?(%r{^https?://}) - xml = url.end_with?('.xml') + xml = url.end_with?(".xml") xml ||= begin headers = Strategy.page_headers(url) - content_type = headers["content-type"]&.split(';', 2)&.first + content_type = headers["content-type"]&.split(";", 2)&.first ["application/xml", "text/xml"].include?(content_type) end return false unless xml