summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/attribute_cleaner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/import_export/attribute_cleaner.rb')
-rw-r--r--lib/gitlab/import_export/attribute_cleaner.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/import_export/attribute_cleaner.rb b/lib/gitlab/import_export/attribute_cleaner.rb
index 2d64ea77060..f476905b6db 100644
--- a/lib/gitlab/import_export/attribute_cleaner.rb
+++ b/lib/gitlab/import_export/attribute_cleaner.rb
@@ -29,10 +29,9 @@ module Gitlab
return true if 'cached_markdown_version'.equal?(key)
prohibited_suffixes = %w(_id _html)
- prohibited_suffixes.each do |suffix|
- return true if key.end_with?(suffix)
+ prohibited_suffixes.any? do |suffix|
+ true if key.end_with?(suffix)
end
- false
end
def allowed_reference?(key)