summaryrefslogtreecommitdiff
path: root/lib/highline/question_asker.rb
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-01 22:57:07 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-01 23:42:10 -0300
commit92872eaf3e200df50fac5fe5e8ce1c8b2d1373aa (patch)
tree5f548ad08c4e96752536153c756841d97fd1e67c /lib/highline/question_asker.rb
parent492b61377ceabe3c4d91ba8ed44ca245dbc5f43c (diff)
downloadhighline-92872eaf3e200df50fac5fe5e8ce1c8b2d1373aa.tar.gz
Apply manual fixes for rubocop warnings
Diffstat (limited to 'lib/highline/question_asker.rb')
-rw-r--r--lib/highline/question_asker.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/highline/question_asker.rb b/lib/highline/question_asker.rb
index 845914a..0d124b1 100644
--- a/lib/highline/question_asker.rb
+++ b/lib/highline/question_asker.rb
@@ -31,7 +31,8 @@ class HighLine
question.convert
if question.confirm
- raise NoConfirmationQuestionError unless @highline.send(:confirm, question)
+ confirmation = @highline.send(:confirm, question)
+ raise NoConfirmationQuestionError unless confirmation
end
rescue ExplainableError => e
explain_error(e.explanation_key)