diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-05-31 01:03:43 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-05-31 01:03:43 -0300 |
commit | 99febf851a2fff19a8871e6bbd9d3d9fd95e1c67 (patch) | |
tree | 6912dd5e73ccc4d53d2b492d8c9c01eab9e7d172 | |
parent | 10ddd179168f3fa447cff120b60cf7edfff46c10 (diff) | |
download | highline-99febf851a2fff19a8871e6bbd9d3d9fd95e1c67.tar.gz |
Remove unecessary assignment
-rwxr-xr-x | lib/highline.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/highline.rb b/lib/highline.rb index e787629..be43fd5 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -537,11 +537,10 @@ class HighLine if question.in_range? if question.confirm - # need to add a layer of scope to ask a question inside a + # need to add a layer of scope (new_scope) to ask a question inside a # question, without destroying instance data - context_change = new_scope - raise NoConfirmationQuestionError unless context_change.agree(question.confirm_question(self)) + raise NoConfirmationQuestionError unless new_scope.agree(question.confirm_question(self)) end else raise NotInRangeQuestionError |