[ruby/irb] Remove useless begin/end [ci skip]

(https://github.com/ruby/irb/pull/680)

The `rescue` was removed at https://github.com/ruby/irb/commit/420e7d227011.

https://github.com/ruby/irb/commit/8fa688e9c0
This commit is contained in:
Nobuyoshi Nakada 2023-08-14 00:02:25 +09:00 committed by git
parent eb221a3734
commit 3af5badae8

View File

@ -159,7 +159,6 @@ module IRB
end end
end end
begin
class ReadlineInputMethod < StdioInputMethod class ReadlineInputMethod < StdioInputMethod
def self.initialize_readline def self.initialize_readline
require "readline" require "readline"
@ -220,7 +219,6 @@ module IRB
str str
end end
end end
end
class RelineInputMethod < StdioInputMethod class RelineInputMethod < StdioInputMethod
HISTORY = Reline::HISTORY HISTORY = Reline::HISTORY