diff --git a/lib/rubocop/cop/performance/uri_default_parser.rb b/lib/rubocop/cop/performance/uri_default_parser.rb index 4ce34da0b2..5d50f8cfe2 100644 --- a/lib/rubocop/cop/performance/uri_default_parser.rb +++ b/lib/rubocop/cop/performance/uri_default_parser.rb @@ -25,7 +25,7 @@ class UriDefaultParser < Base PATTERN def on_send(node) - return unless uri_parser_new?(node) do |captured_value| + uri_parser_new?(node) do |captured_value| double_colon = captured_value ? '::' : '' message = format(MSG, double_colon: double_colon)