summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-05-31 01:03:43 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-05-31 01:03:43 -0300
commit99febf851a2fff19a8871e6bbd9d3d9fd95e1c67 (patch)
tree6912dd5e73ccc4d53d2b492d8c9c01eab9e7d172
parent10ddd179168f3fa447cff120b60cf7edfff46c10 (diff)
downloadhighline-99febf851a2fff19a8871e6bbd9d3d9fd95e1c67.tar.gz
Remove unecessary assignment
-rwxr-xr-xlib/highline.rb5
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