From bb6b69b4abe86601a8438a6708263174879b5c51 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 21 Mar 2022 13:44:09 +0100 Subject: linter: enable wastedassign Signed-off-by: Valentin Rothberg --- pkg/systemd/dbus.go | 1 - 1 file changed, 1 deletion(-) (limited to 'pkg/systemd') diff --git a/pkg/systemd/dbus.go b/pkg/systemd/dbus.go index 1b1bc8be9..44feb8308 100644 --- a/pkg/systemd/dbus.go +++ b/pkg/systemd/dbus.go @@ -24,7 +24,6 @@ func IsSystemdSessionValid(uid int) bool { if rootless.IsRootless() { conn, err = GetLogindConnection(rootless.GetRootlessUID()) - object = conn.Object(dbusDest, godbus.ObjectPath(dbusPath)) if err != nil { //unable to fetch systemd object for logind logrus.Debugf("systemd-logind: %s", err) -- cgit v1.2.3-54-g00ecf