From 9577a874e8d296206d943f05cb415efa26521d36 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Sat, 31 Dec 2022 22:19:22 -0300 Subject: Check_range even if it's not being converted --- lib/highline/question/answer_converter.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/highline/question/answer_converter.rb b/lib/highline/question/answer_converter.rb index 76558ae..a899586 100644 --- a/lib/highline/question/answer_converter.rb +++ b/lib/highline/question/answer_converter.rb @@ -26,9 +26,7 @@ class HighLine # it makes the conversion and returns the answer. # @return [Object] the converted answer. def convert - return unless answer_type - - self.answer = convert_by_answer_type + self.answer = convert_by_answer_type if answer_type check_range answer end -- cgit v1.2.1