From 90ea524382bcdf4a9d1a619169150d004b783972 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 30 Apr 2020 19:17:53 +1000 Subject: [PATCH] Remove unecssary && --- lib/custom_wizard/mapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/custom_wizard/mapper.rb b/lib/custom_wizard/mapper.rb index e8f943e5..435779aa 100644 --- a/lib/custom_wizard/mapper.rb +++ b/lib/custom_wizard/mapper.rb @@ -209,7 +209,7 @@ class CustomWizard::Mapper format = attrs.last if attrs.length > 1 result = '' - if key == 'time' && + if key == 'time' time_format = format.present? ? format : "%B %-d, %Y" result = Time.now.strftime(time_format) end