mirror of
https://github.com/containers/podman.git
synced 2025-05-31 15:42:48 +08:00
lint: fix warnings found by perfsprint
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user