lint: fix warnings found by perfsprint

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2023-10-20 16:21:12 +02:00
parent 64f43fed4d
commit 29273cda10
24 changed files with 62 additions and 53 deletions

View File

@ -11,6 +11,7 @@ import (
"fmt"
"os"
"path/filepath"
"strconv"
"syscall"
"github.com/containers/podman/v4/pkg/rootless"
@ -33,7 +34,7 @@ func GetRuntimeDir() (string, error) {
return
}
uid := fmt.Sprintf("%d", rootless.GetRootlessUID())
uid := strconv.Itoa(rootless.GetRootlessUID())
if runtimeDir == "" {
tmpDir := filepath.Join("/run", "user", uid)
if err := os.MkdirAll(tmpDir, 0700); err != nil {