Commit 107292dd authored by James Lopez's avatar James Lopez

Fix spec warnings and template helper

parent b901df22
...@@ -3,7 +3,7 @@ module Gitlab ...@@ -3,7 +3,7 @@ module Gitlab
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
def prepare_template_environment(file) def prepare_template_environment(file)
return unless file&.path.present? return unless file
if Gitlab::ImportExport.object_storage? if Gitlab::ImportExport.object_storage?
params[:import_export_upload] = ImportExportUpload.new(import_file: file) params[:import_export_upload] = ImportExportUpload.new(import_file: file)
......
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