Skip to content

Commit a54cbe5

Browse files
committed
avoid double ENV["RAKE_SYSTEM"] lookup
1 parent 4538838 commit a54cbe5

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)