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.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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue