Skip to content

Commit

Permalink
avoid double ENV["RAKE_SYSTEM"] lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdb committed Oct 2, 2024
1 parent 4538838 commit a54cbe5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a54cbe5

Please sign in to comment.