summaryrefslogtreecommitdiff
path: root/rubocop/code_reuse_helpers.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-14 15:12:56 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-14 15:12:56 +0000
commitc014b6b4e5c33180dd5cbff1dd1bb4623d1eca80 (patch)
tree0aa4dbf0c9236ebd669b26240a18c08aef2cc50e /rubocop/code_reuse_helpers.rb
parent16daf112d6cfe2c87d8837382a00d88aa8c0ff5c (diff)
downloadgitlab-ce-c014b6b4e5c33180dd5cbff1dd1bb4623d1eca80.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop/code_reuse_helpers.rb')
-rw-r--r--rubocop/code_reuse_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/code_reuse_helpers.rb b/rubocop/code_reuse_helpers.rb
index 87b907f8778..245bbc31cbd 100644
--- a/rubocop/code_reuse_helpers.rb
+++ b/rubocop/code_reuse_helpers.rb
@@ -163,7 +163,7 @@ module RuboCop
each_send_node(node) do |send_node|
next unless send_receiver_name_ends_with?(send_node, suffix)
- add_offense(send_node, location: :expression, message: message)
+ add_offense(send_node, message: message)
end
end