Skip to content

Commit

Permalink
Fix rubocop violation on parens around logical expression
Browse files Browse the repository at this point in the history
Don't know exactly how this got in main branch, but currently failing build due to:

```
lib/browse_everything/driver/base.rb:72:19: C: [Correctable] Style/RedundantParentheses: Don't use parentheses around a logical expression.
        @name ||= (@config[:name] || self.class.name.split(/::/).last.titleize)
```
  • Loading branch information
jrochkind committed Jul 22, 2024
1 parent ab0ee56 commit 5d3c218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browse_everything/driver/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def icon
# Generate the name for the driver
# @return [String]
def name
@name ||= (@config[:name] || self.class.name.split(/::/).last.titleize)
@name ||= @config[:name] || self.class.name.split(/::/).last.titleize
end

# Abstract method
Expand Down

0 comments on commit 5d3c218

Please sign in to comment.