Skip to content

Commit 825e366

Browse files
committed
Dedupe and simplify standard_system_dir method
1 parent 710b4db commit 825e366

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/rake/application.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,12 +754,10 @@ def system_dir # :nodoc:
754754
end
755755

756756
# The standard directory containing system wide rake files.
757-
if Win32.windows?
758-
def standard_system_dir #:nodoc:
757+
def standard_system_dir #:nodoc:
758+
if windows?
759759
File.join(Dir.home, "Rake")
760-
end
761-
else
762-
def standard_system_dir #:nodoc:
760+
else
763761
File.join(Dir.home, ".rake")
764762
end
765763
end

0 commit comments

Comments
 (0)