From 3f9453f664e3450df3de30444e1e87ff28904a03 Mon Sep 17 00:00:00 2001 From: HassanAkbar Date: Tue, 2 Apr 2024 12:16:38 +0500 Subject: [PATCH] hound comments resolved --- lib/tc211/termbase/term.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tc211/termbase/term.rb b/lib/tc211/termbase/term.rb index 8af16b2..75c8fd0 100644 --- a/lib/tc211/termbase/term.rb +++ b/lib/tc211/termbase/term.rb @@ -255,8 +255,8 @@ def lineage_source_similarity=(value) def clean_source!(source) if source.is_a?(Hash) - source["ref"].gsub!(/\(E\),?\s*/, "") if source["ref"] - source["clause"].gsub!(/\(E\),?\s*/, "") if source["clause"] + source["ref"]&.gsub!(/\(E\),?\s*/, "") + source["clause"]&.gsub!(/\(E\),?\s*/, "") else source.gsub!(/\(E\),?\s*/, "") end