Maintenance: Bump rubocop from 1.19.0 to 1.19.1

This commit is contained in:
Martin Gruner 2021-08-20 07:47:29 +02:00
parent f3464cc4ac
commit 757de71bd8
2 changed files with 1 additions and 4 deletions

View file

@ -498,7 +498,7 @@ GEM
rspec-support (~> 3.10)
rspec-support (3.10.2)
rszr (0.5.2)
rubocop (1.19.0)
rubocop (1.19.1)
parallel (~> 1.10)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)

View file

@ -97,7 +97,6 @@ class SearchKnowledgeBaseBackend
.joins(:category)
.where(knowledge_base_categories: { knowledge_base_id: knowledge_bases })
# rubocop:disable Style/RedundantSelfAssignmentBranch
scope = if user&.permissions?('knowledge_base.editor')
scope
elsif user&.permissions?('knowledge_base.reader') && flavor == :agent
@ -105,8 +104,6 @@ class SearchKnowledgeBaseBackend
else
scope.published
end
# rubocop:enable Style/RedundantSelfAssignmentBranch
flatten_translation_ids(scope)
end