Fix spec warnings and template helper

This commit is contained in:
James Lopez 2018-08-03 13:07:50 +02:00
parent b901df220c
commit 107292dd3a
No known key found for this signature in database
GPG key ID: 756BF8E9D7C0CF39
2 changed files with 1 additions and 1 deletions

View file

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