Commit e43490e
committed
Fix current RuboCop offense
Autocorrect would have been `node.true_type? || node` but I don't think that preserves the intention
```
$ bundle exec rubocop
Inspecting 278 files
........................................................................................................................................C.............................................................................................................................................
Offenses:
lib/rubocop/rspec/hook.rb:67:25: C: [Correctable] Style/RedundantCondition: Use double pipes || instead.
node.true_type? ? true : node
^^^^^^^^
278 files inspected, 1 offense detected, 1 offense autocorrectable
```1 parent 6fca833 commit e43490e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments