summaryrefslogtreecommitdiff
path: root/lib/highline/question/answer_converter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/highline/question/answer_converter.rb')
-rw-r--r--lib/highline/question/answer_converter.rb4
1 files changed, 1 insertions, 3 deletions
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