Skip to content

Commit

Permalink
Suppress a RuboCop offense
Browse files Browse the repository at this point in the history
Follow up rubocop/rubocop#10715 and
suppresses the following offense:

```console
lib/rubocop/ast/node_pattern/compiler/binding.rb:24:31: C:
Layout/LineContinuationLeadingSpace: Move leading spaces to the end of
previous line.
                             " union and can't be used outside that union"
                              ^

162 files inspected, 1 offense detected
```
  • Loading branch information
koic committed Jun 23, 2022
1 parent 5af77e8 commit 20e917f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/ast/node_pattern/compiler/binding.rb
Expand Up @@ -20,8 +20,8 @@ def bind(name)
end

if var == :forbidden_unification
raise Invalid, "Wildcard #{name} was first seen in a subset of a" \
" union and can't be used outside that union"
raise Invalid, "Wildcard #{name} was first seen in a subset of a " \
"union and can't be used outside that union"
end
var
end
Expand Down

0 comments on commit 20e917f

Please sign in to comment.