summaryrefslogtreecommitdiff
path: root/lib/reline/line_editor.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-11-18 03:23:45 +0900
committeraycabta <aycabta@gmail.com>2019-11-18 03:23:45 +0900
commit7c6bedfe5c8a3a36d79bdc63f04d7ccb0a82234e (patch)
treea0344834f91db47d7e017b22551083735c4bd28d /lib/reline/line_editor.rb
parente7c5c60095537dabda7be5102ae66bd39a1ad133 (diff)
Remove unnecessary check
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 8071080ccf..55a5faf82f 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -766,7 +766,7 @@ class Reline::LineEditor
end
def input_key(key)
- if key.nil? or key.char.nil?
+ if key.char.nil?
if @first_char
@line = nil
end