From c128f2f0035dcd0dd4dfa32d0edc900402861503 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Thu, 5 Sep 2024 15:08:29 +0200 Subject: [PATCH] Check presence of template zip URL [SCI-10999] --- config/initializers/report_template_loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/report_template_loader.rb b/config/initializers/report_template_loader.rb index 1af443d04..380651833 100644 --- a/config/initializers/report_template_loader.rb +++ b/config/initializers/report_template_loader.rb @@ -5,7 +5,7 @@ require 'active_storage/service/s3_service' template_zip_url_string = ENV.fetch('REPORT_TEMPLATES_ZIP_URL', nil) -return unless template_zip_url_string +return unless template_zip_url_string.present? template_zip_url = URI.parse(template_zip_url_string) contents = case template_zip_url.scheme