Skip to content

Commit

Permalink
Check_range even if it's not being converted
Browse files Browse the repository at this point in the history
  • Loading branch information
abinoam committed Jan 1, 2023
1 parent b999371 commit 9577a87
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/highline/question/answer_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def initialize(question)
# 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
Expand Down

0 comments on commit 9577a87

Please sign in to comment.