From 22d68fb99b02b1b41afd3f7e109d0cb6af099005 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Mon, 10 Jan 2022 21:34:51 +1100 Subject: [PATCH] fix style offences --- .../Homebrew/rubocops/cask/url_legacy_comma_separators.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb b/Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb index 66aff943e2..b22dbc59b1 100644 --- a/Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb +++ b/Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb @@ -12,11 +12,12 @@ module RuboCop include OnUrlStanza extend AutoCorrector - MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma' and 'version.csv.second' instead of 'version.after_comma'." + MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma'"\ + "and 'version.csv.second' instead of 'version.after_comma'." - def on_url_stanza(stanza) + def on_url_stanza(stanza) return if stanza.stanza_node.type == :block - + url_node = stanza.stanza_node.first_argument legacy_comma_separator_pattern = /version.(before|after)_comma/