Commit 85a103fc authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Fix rubocop offences

parent 5d4c6c17
......@@ -11,7 +11,9 @@ module EE
override :remove_feature_dependent_sub_relations
def remove_feature_dependent_sub_relations(relation_item)
if relation_item.is_a?(Hash) && ::Feature.disabled?(:export_designs, @project, default_enabled: true)
export_designs_disabled = ::Feature.disabled?(:export_designs, @project, default_enabled: true) # rubocop:disable Gitlab/ModuleWithInstanceVariables
if relation_item.is_a?(Hash) && export_designs_disabled
relation_item.except!('designs', 'design_versions')
end
end
......
......@@ -36,9 +36,8 @@ module Gitlab
end
end
# ensure that we have latest version
# of the restore
@restored_project = @project.reload
# ensure that we have latest version of the restore
@restored_project = @project.reload # rubocop:disable Cop/ActiveRecordAssociationReload
true
rescue => e
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment