Skip to content

Commit

Permalink
Merge pull request #591 from pvdb/simplify_rake_system_dir
Browse files Browse the repository at this point in the history
refactor: simplify `Rake::Application#system_dir` method
  • Loading branch information
hsbt authored Dec 9, 2024
2 parents 2e9a25b + a54cbe5 commit 5625c0d
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 5625c0d

Please sign in to comment.