Skip to content

Commit 3a96f09

Browse files
committed
Use File::NULL instead of hardcoding /dev/null.
Fixes #283
1 parent 5b8e389 commit 3a96f09

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)