diff --git a/lib/rake/application.rb b/lib/rake/application.rb index b1b780a23..e387aec1c 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.