summaryrefslogtreecommitdiff
path: root/lib/highline
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-09-24 05:06:22 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-09-24 20:19:41 -0300
commitbdd9f6f991e3a6dd5fbe4616cdd6303fa9416364 (patch)
tree7beb92de6ce238828a7a5604a34f994b176b2713 /lib/highline
parent76d2a31b8222b99ba2320a47dc256662c93ec1c7 (diff)
downloadhighline-bdd9f6f991e3a6dd5fbe4616cdd6303fa9416364.tar.gz
Remove double negation
Diffstat (limited to 'lib/highline')
-rwxr-xr-xlib/highline/question.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/highline/question.rb b/lib/highline/question.rb
index f6cccfb..d94df9a 100755
--- a/lib/highline/question.rb
+++ b/lib/highline/question.rb
@@ -393,7 +393,7 @@ class HighLine
# Returns true if _first_answer_ is set.
def first_answer?
- !!@first_answer
+ true if @first_answer
end
#
@@ -579,7 +579,7 @@ class HighLine
if echo == true
response
# any truethy value, probably a String
- elsif !!echo
+ elsif echo
echo
# any falsy value, false or nil
else