Commit 5fc99e6
committed
Suppress RuboCop's offense
This commit suppresses the fllowing RuboCop's offense:
```console
$ bundle exec rubocop
(snip)
Offenses:
lib/rubocop/cop/performance/map_compact.rb:72:41: C: [Correctable] InternalAffairs/LocationExists:
Use chained_method&.loc?(:selector) instead of chained_method&.loc.respond_to?(:selector).
if compact_node.multiline? && chained_method&.loc.respond_to?(:selector) && use_dot?(chained_method) &&
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
123 files inspected, 1 offense detected, 1 offense autocorrectable1 parent ae0059a commit 5fc99e6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments