From b338a368908253a29bf79ac9350b3a96003b75d1 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 27 Apr 2022 22:53:47 +0200 Subject: [PATCH] fix(windows): do not lock Home() --- src/environment/windows.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/environment/windows.go b/src/environment/windows.go index 7e32297c..4ffa6b38 100644 --- a/src/environment/windows.go +++ b/src/environment/windows.go @@ -55,10 +55,6 @@ func (env *ShellEnvironment) Root() bool { } func (env *ShellEnvironment) Home() string { - env.lock.Lock() - defer func() { - env.lock.Unlock() - }() home := os.Getenv("HOME") defer func() { env.log(Debug, "Home", home)