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)
rspec-support (3.10.2) rspec-support (3.10.2)
rszr (0.5.2) rszr (0.5.2)
rubocop (1.19.0) rubocop (1.19.1)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.0.0.0) parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)

View file

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