fix(windows): do not lock Home()

This commit is contained in:
Jan De Dobbeleer 2022-04-27 22:53:47 +02:00 committed by Jan De Dobbeleer
parent d310ea6b89
commit b338a36890

View file

@ -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)