From 5b2e0a0ac50f683a8aa85bec0db5724e9de81c55 Mon Sep 17 00:00:00 2001 From: tompng Date: Fri, 23 Feb 2024 21:58:20 +0900 Subject: [PATCH] Remove useless loaded file check --- lib/irb/ext/use-loader.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/irb/ext/use-loader.rb b/lib/irb/ext/use-loader.rb index f47d1cab0..77c53b7d5 100644 --- a/lib/irb/ext/use-loader.rb +++ b/lib/irb/ext/use-loader.rb @@ -49,8 +49,6 @@ def use_loader=(opt) if IRB.conf[:USE_LOADER] != opt IRB.conf[:USE_LOADER] = opt if opt - if !$".include?("irb/command/load") - end (class<<@workspace.main;self;end).instance_eval { alias_method :load, :irb_load alias_method :require, :irb_require