From e568b0118ce75692e2355c0fba9489a60025398f Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Thu, 20 Jan 2022 10:00:14 -0500 Subject: [PATCH] Remove null gacs. --- lib/rdf2marc/rdf2model/mappers/number_and_code_fields.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdf2marc/rdf2model/mappers/number_and_code_fields.rb b/lib/rdf2marc/rdf2model/mappers/number_and_code_fields.rb index 3cb8b0d..3611000 100644 --- a/lib/rdf2marc/rdf2model/mappers/number_and_code_fields.rb +++ b/lib/rdf2marc/rdf2model/mappers/number_and_code_fields.rb @@ -110,7 +110,7 @@ def geographic_area_codes Resolver.resolve_geographic_area_code(gac_uri) end { - geographic_area_codes: gacs.sort + geographic_area_codes: gacs.compact.sort } end