Skip to content

Commit e849b0e

Browse files
committed
chore: Don't use parentheses around a literal
Fix rubocop cop Style/RedundantParentheses.
1 parent 9da9d1b commit e849b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails/rfc6570/formatter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def evaluate(ctx:, ignore: %w[format], **kwargs)
2121

2222
if controller.present? && action.present?
2323
params = ::Rails::RFC6570.params_for(controller, action)
24-
parts << ("{?#{params.join(',')}}") if params&.any?
24+
parts << "{?#{params.join(',')}}" if params&.any?
2525
end
2626
end
2727

0 commit comments

Comments
 (0)