From 2c9c57f744d11a85c5e9f12826654056a4d4c0ce Mon Sep 17 00:00:00 2001 From: Mo Seedat Date: Sun, 2 Oct 2022 23:08:31 +0100 Subject: [PATCH] Re-add original code line Unnecessary change to code --- app/models/lettings_log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/lettings_log.rb b/app/models/lettings_log.rb index f27b73ba7..42fa5853c 100644 --- a/app/models/lettings_log.rb +++ b/app/models/lettings_log.rb @@ -657,7 +657,7 @@ private end def upcase_and_remove_whitespace(string) - string&.upcase&.gsub(/\s+/, "") + string.present? ? string.upcase.gsub(/\s+/, "") : string end def fully_wheelchair_accessible?