summaryrefslogtreecommitdiff
path: root/utils/utils.go
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-05-19 10:45:28 +0200
committerMatthew Heon <mheon@redhat.com>2022-06-14 13:47:42 -0400
commit31d310a4b1441fb383d4e1cf1ce6d5b17b4c07b5 (patch)
treefeee10b824c32844405d62e63059ae288e0644a3 /utils/utils.go
parent74ac2dda297eb315254e805c9a5c9b6a7c3eda89 (diff)
downloadpodman-31d310a4b1441fb383d4e1cf1ce6d5b17b4c07b5.tar.gz
podman-31d310a4b1441fb383d4e1cf1ce6d5b17b4c07b5.tar.bz2
podman-31d310a4b1441fb383d4e1cf1ce6d5b17b4c07b5.zip
linter: enable unconvert linter
Detects unneccessary type conversions and helps in keeping the code base cleaner. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'utils/utils.go')
-rw-r--r--utils/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/utils.go b/utils/utils.go
index d0e3dbb46..fd66ac2ed 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -192,7 +192,7 @@ func moveProcessPIDFileToScope(pidPath, slice, scope string) error {
}
func moveProcessToScope(pid int, slice, scope string) error {
- err := RunUnderSystemdScope(int(pid), slice, scope)
+ err := RunUnderSystemdScope(pid, slice, scope)
// If the PID is not valid anymore, do not return an error.
if dbusErr, ok := err.(dbus.Error); ok {
if dbusErr.Name == "org.freedesktop.DBus.Error.UnixProcessIdUnknown" {