summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-02 01:32:30 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-02 01:38:11 -0300
commitff7f130c3f17dcabfad26f5372e82c7c94a28d7b (patch)
treebbb0ffb4b5721a9edc89c8dc95e73cd53ae266ae
parent9716b13861645e6e5d4589e7c56415328f68c976 (diff)
downloadhighline-ff7f130c3f17dcabfad26f5372e82c7c94a28d7b.tar.gz
Remove unecessary code
It was useful previously
-rw-r--r--lib/highline/question_asker.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/highline/question_asker.rb b/lib/highline/question_asker.rb
index 10a43ef..433d709 100644
--- a/lib/highline/question_asker.rb
+++ b/lib/highline/question_asker.rb
@@ -64,12 +64,10 @@ class HighLine
#
# @return [Array, Hash] answers
def gather_answers
- original_question_template = question.template
verify_match = question.verify_match
answers = []
loop do # when verify_match is set this loop will repeat until unique_answers == 1
- question.template = original_question_template
answers = gather_answers_based_on_type
if verify_match && (@highline.send(:unique_answers, answers).size > 1)