Skip to content

Commit 417b89c

Browse files
committed
Suppress Ruby's warning
This PR suppresses the following Ruby's warning. ```console % cd path/to/repo/rubocop-rails % bundle exec rake (snip) /Users/koic/src/github.com/rubocop-hq/rubocop-rails/lib/rubocop/cop/rails/uniq_before_pluck.rb:71: warning: too many arguments for format string ```
1 parent a7d0605 commit 417b89c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rubocop/cop/rails/uniq_before_pluck.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ def on_send(node)
6767

6868
return unless method
6969

70-
add_offense(node, location: :selector,
71-
message: format(MSG, method: method))
70+
add_offense(node, location: :selector)
7271
end
7372

7473
def autocorrect(node)

0 commit comments

Comments
 (0)