We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05e25b7 commit 862c937Copy full SHA for 862c937
lib/simplecov/load_global_config.rb
@@ -1,7 +1,7 @@
1
# frozen_string_literal: true
2
3
require "etc"
4
-home_dir = (Dir.home && File.expand_path("~")) || Etc.getpwuid.dir || (ENV.fetch("USER", nil) && File.expand_path("~#{ENV.fetch('USER', nil)}"))
+home_dir = Dir.home || File.expand_path("~") || Etc.getpwuid.dir || (ENV.fetch("USER", nil) && File.expand_path("~#{ENV.fetch('USER', nil)}"))
5
if home_dir
6
global_config_path = File.join(home_dir, ".simplecov")
7
load global_config_path if File.exist?(global_config_path)
0 commit comments