Merge branch 'fix/import-templates-spec' into 'master'

Fix spec warnings and template helper

See merge request gitlab-org/gitlab-ce!21007
This commit is contained in:
Sean McGivern 2018-08-03 13:21:19 +00:00
commit beda5ca507
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)