Skip to content

Commit

Permalink
Suppress a new RuboCop offense
Browse files Browse the repository at this point in the history
This commit suppresses the following new RuboCop offense:

```console
$ bundle exec rubocop
(snip)

lib/rubocop/cop/performance/uri_default_parser.rb:28:11: C: [Correctable] Style/RedundantReturn: Redundant return detected.
          return unless uri_parser_new?(node) do |captured_value|
          ^^^^^^
```
  • Loading branch information
koic committed Aug 9, 2023
1 parent 9d56a69 commit d7a141d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/performance/uri_default_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d7a141d

Please sign in to comment.