From 7c6bedfe5c8a3a36d79bdc63f04d7ccb0a82234e Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 18 Nov 2019 03:23:45 +0900 Subject: Remove unnecessary check --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/reline/line_editor.rb') 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 -- cgit v1.2.3