[前][次][番号順一覧][スレッド一覧]

ruby-changes:58800

From: aycabta <ko1@a...>
Date: Mon, 18 Nov 2019 03:25:19 +0900 (JST)
Subject: [ruby-changes:58800] 7c6bedfe5c (master): Remove unnecessary check

https://git.ruby-lang.org/ruby.git/commit/?id=7c6bedfe5c

From 7c6bedfe5c8a3a36d79bdc63f04d7ccb0a82234e Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Mon, 18 Nov 2019 03:23:45 +0900
Subject: Remove unnecessary check


diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 8071080..55a5faf 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -766,7 +766,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L766
   end
 
   def input_key(key)
-    if key.nil? or key.char.nil?
+    if key.char.nil?
       if @first_char
         @line = nil
       end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]