mirror of
https://github.com/containers/podman.git
synced 2026-02-19 07:26:18 -05:00
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>
17 lines
356 B
Go
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
|
|
}
|