Skip to content

Commit 5625c0d

Browse files
authored
Merge pull request #591 from pvdb/simplify_rake_system_dir
refactor: simplify `Rake::Application#system_dir` method
2 parents 2e9a25b + a54cbe5 commit 5625c0d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/rake/application.rb

+1-8
Original file line numberDiff line numberDiff line change
@@ -755,14 +755,7 @@ def glob(path, &block) # :nodoc:
755755

756756
# The directory path containing the system wide rakefiles.
757757
def system_dir # :nodoc:
758-
@system_dir ||=
759-
begin
760-
if ENV["RAKE_SYSTEM"]
761-
ENV["RAKE_SYSTEM"]
762-
else
763-
standard_system_dir
764-
end
765-
end
758+
@system_dir ||= ENV["RAKE_SYSTEM"] || standard_system_dir
766759
end
767760

768761
# The standard directory containing system wide rake files.

0 commit comments

Comments
 (0)