From 91036e41462d9faafceaba75884a8007708200eb Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 14 Dec 2024 22:27:10 -0800 Subject: [PATCH] AO3-6587 Fix additional Rubocop concern about my hamfisted coding skillz --- app/models/concerns/justifiable.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/concerns/justifiable.rb b/app/models/concerns/justifiable.rb index bd4af89542..7c056068e0 100644 --- a/app/models/concerns/justifiable.rb +++ b/app/models/concerns/justifiable.rb @@ -18,9 +18,8 @@ module Justifiable private def strip_octothorpe - unless ticket_number.is_a?(Integer) - self.ticket_number = self.ticket_number.delete_prefix("#") unless self.ticket_number.nil? - end + return if ticket_number.is_a?(Integer) + self.ticket_number = self.ticket_number.delete_prefix("#") unless self.ticket_number.nil? end def enabled?