diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-01 22:57:07 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-01 23:42:10 -0300 |
commit | 92872eaf3e200df50fac5fe5e8ce1c8b2d1373aa (patch) | |
tree | 5f548ad08c4e96752536153c756841d97fd1e67c /lib/highline/question_asker.rb | |
parent | 492b61377ceabe3c4d91ba8ed44ca245dbc5f43c (diff) | |
download | highline-92872eaf3e200df50fac5fe5e8ce1c8b2d1373aa.tar.gz |
Apply manual fixes for rubocop warnings
Diffstat (limited to 'lib/highline/question_asker.rb')
-rw-r--r-- | lib/highline/question_asker.rb | 3 |
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) |