From 84971cf7c148787e2e9d6c0d753454b82cae892f Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Wed, 15 Jun 2022 17:32:18 +0100 Subject: [PATCH] Rubocop --- app/services/imports/case_logs_import_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/imports/case_logs_import_service.rb b/app/services/imports/case_logs_import_service.rb index 528058238..14975a546 100644 --- a/app/services/imports/case_logs_import_service.rb +++ b/app/services/imports/case_logs_import_service.rb @@ -565,7 +565,7 @@ module Imports def allocation_system_unknown(cbl, chr, cap) allocation_values = [cbl, chr, cap] - if allocation_values.all? { |att| att.nil? } + if allocation_values.all?(&:nil?) nil elsif allocation_values.all? { |att| att&.zero? } 1