Skip to content

Commit e25d119

Browse files
committed
Merge pull request #284 from lucasmazza/fix-null-on-windows
Use `File::NULL` instead of hardcoding `/dev/null`.
2 parents 5b8e389 + 3a96f09 commit e25d119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/env.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Env
1616
def initialize(root = nil)
1717
@root = root
1818
@project_root = root
19-
@log_file = File.open(ENV["SPRING_LOG"] || "/dev/null", "a")
19+
@log_file = File.open(ENV["SPRING_LOG"] || File::NULL, "a")
2020
end
2121

2222
def root

0 commit comments

Comments
 (0)