Files
podman/pkg/emulation/emulation.go
Kir Kolyshkin 38f6bf07cc pkg/emulation: remove slice copying
Copying the slice is not necessary here since registeredBinfmtMisc
always creates the slice from scratch.

This commit is part of series fixing issues reported by prealloc linter
from golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:10 -08:00

17 lines
356 B
Go

//go:build !remote
package emulation
import "github.com/sirupsen/logrus"
// Registered returns a list of platforms for which we think we have user
// space emulation available.
func Registered() []string {
registered, err := registeredBinfmtMisc()
if err != nil {
logrus.Warnf("registeredBinfmtMisc(): %v", err)
return nil
}
return registered
}