From a54cbe560454615d22b12771968b65b3c777d256 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Wed, 2 Oct 2024 08:46:46 +0100 Subject: [PATCH] avoid double `ENV["RAKE_SYSTEM"]` lookup --- lib/rake/application.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 33ca872dd..f5728b797 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -755,14 +755,7 @@ def glob(path, &block) # :nodoc: # The directory path containing the system wide rakefiles. def system_dir # :nodoc: - @system_dir ||= - begin - if ENV["RAKE_SYSTEM"] - ENV["RAKE_SYSTEM"] - else - standard_system_dir - end - end + @system_dir ||= ENV["RAKE_SYSTEM"] || standard_system_dir end # The standard directory containing system wide rake files.