From f50a7f8d970c50026e52c0b5d1c444b365d3b795 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 5 Dec 2022 00:07:09 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- rubocop/cop/graphql/descriptions.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rubocop') diff --git a/rubocop/cop/graphql/descriptions.rb b/rubocop/cop/graphql/descriptions.rb index d49673b29b3..0234ad99521 100644 --- a/rubocop/cop/graphql/descriptions.rb +++ b/rubocop/cop/graphql/descriptions.rb @@ -91,10 +91,9 @@ module RuboCop return unless message add_offense(node, message: message) do |corrector| - description = locate_description(node) next unless description - corrector.insert_after(before_end_quote(description), '.') + corrector.insert_after(before_end_quote(description), '.') if no_period?(description) end end -- cgit v1.2.3