diff options
author | brb-g <45642843+brb-g@users.noreply.github.com> | 2019-08-29 11:27:49 -0700 |
---|---|---|
committer | Ian Lewis <ianlewis@google.com> | 2019-08-29 11:27:49 -0700 |
commit | 9ce9ceaf4e0678e06c5b899825f918b72f4d5889 (patch) | |
tree | 6c1f8eaf117ac59f3de2a169e4dd342ed1c97eab /vendor/github.com/godbus/dbus/homedir.go | |
parent | 462bafb2e7a4d56b788a7467a9e7c05604f55a15 (diff) |
Replace pre-go1.11 vendoring with a go1.12 module. (#37)
Diffstat (limited to 'vendor/github.com/godbus/dbus/homedir.go')
-rw-r--r-- | vendor/github.com/godbus/dbus/homedir.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/vendor/github.com/godbus/dbus/homedir.go b/vendor/github.com/godbus/dbus/homedir.go deleted file mode 100644 index 0b745f931..000000000 --- a/vendor/github.com/godbus/dbus/homedir.go +++ /dev/null @@ -1,28 +0,0 @@ -package dbus - -import ( - "os" - "sync" -) - -var ( - homeDir string - homeDirLock sync.Mutex -) - -func getHomeDir() string { - homeDirLock.Lock() - defer homeDirLock.Unlock() - - if homeDir != "" { - return homeDir - } - - homeDir = os.Getenv("HOME") - if homeDir != "" { - return homeDir - } - - homeDir = lookupHomeDir() - return homeDir -} |