From 107292dd3ab26489ab8fe613b9b3185aa6d66087 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Fri, 3 Aug 2018 13:07:50 +0200 Subject: Fix spec warnings and template helper --- lib/gitlab/template_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/gitlab/template_helper.rb b/lib/gitlab/template_helper.rb index 3918abaab45..f24a01e6cf5 100644 --- a/lib/gitlab/template_helper.rb +++ b/lib/gitlab/template_helper.rb @@ -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) -- cgit v1.2.3