From c2ae11e308c4339803d78308959ee4a15af0e659 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 8 Jul 2018 04:12:04 +0000 Subject: benchmark/driver.rb: simplify LoadError handling git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/driver.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'benchmark') diff --git a/benchmark/driver.rb b/benchmark/driver.rb index 0215d7676d..c166c80edb 100755 --- a/benchmark/driver.rb +++ b/benchmark/driver.rb @@ -3,18 +3,11 @@ # Ruby Benchmark driver # -first = true - begin require 'optparse' rescue LoadError - if first - first = false - $:.unshift File.join(File.dirname(__FILE__), '../lib') - retry - else - raise - end + $:.unshift File.join(File.dirname(__FILE__), '../lib') + require 'optparse' end require 'benchmark' -- cgit v1.2.3