diff options
author | baude <bbaude@redhat.com> | 2019-07-03 14:35:11 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-07-03 15:41:33 -0500 |
commit | fec1de6ef4b3f769ba0906cda948a3215709cd37 (patch) | |
tree | 416a56f712f80f538d4b6ed5bc12ae43aaa07c4f /pkg/rootless | |
parent | f5593d305f68409cf093ea6b66a9d1f121ec0fd6 (diff) | |
download | podman-fec1de6ef4b3f769ba0906cda948a3215709cd37.tar.gz podman-fec1de6ef4b3f769ba0906cda948a3215709cd37.tar.bz2 podman-fec1de6ef4b3f769ba0906cda948a3215709cd37.zip |
trivial cleanups from golang
the results of a code cleanup performed by the goland IDE.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/rootless')
-rw-r--r-- | pkg/rootless/rootless_linux.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go index f3b9a8fd5..8028a359c 100644 --- a/pkg/rootless/rootless_linux.go +++ b/pkg/rootless/rootless_linux.go @@ -215,7 +215,7 @@ func EnableLinger() (string, error) { // If we have a D-BUS connection, attempt to read the LINGER property from it. if conn != nil { - path := dbus.ObjectPath((fmt.Sprintf("/org/freedesktop/login1/user/_%s", uid))) + path := dbus.ObjectPath(fmt.Sprintf("/org/freedesktop/login1/user/_%s", uid)) ret, err := conn.Object("org.freedesktop.login1", path).GetProperty("org.freedesktop.login1.User.Linger") if err == nil && ret.Value().(bool) { lingerEnabled = true @@ -265,7 +265,7 @@ func EnableLinger() (string, error) { // If we have a D-BUS connection, attempt to read the RUNTIME PATH from it. if conn != nil { - path := dbus.ObjectPath((fmt.Sprintf("/org/freedesktop/login1/user/_%s", uid))) + path := dbus.ObjectPath(fmt.Sprintf("/org/freedesktop/login1/user/_%s", uid)) ret, err := conn.Object("org.freedesktop.login1", path).GetProperty("org.freedesktop.login1.User.RuntimePath") if err == nil { return strings.Trim(ret.String(), "\"\n"), nil |