Maintenance: Bump rubocop from 1.19.0 to 1.19.1
This commit is contained in:
parent
f3464cc4ac
commit
757de71bd8
2 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue