mirror of
https://github.com/containers/podman.git
synced 2025-10-09 23:15:39 +08:00
pkg/machine/wsl: use any instead of interface{}
Since Go 1.18, any is a type alias for interface{}. After commit 8631032556 there is still one last instance of interface{} left -- replace it manually. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -175,7 +175,7 @@ func wrapMaybe(err error, message string) error {
|
||||
return errors.New(message)
|
||||
}
|
||||
|
||||
func wrapMaybef(err error, format string, args ...interface{}) error {
|
||||
func wrapMaybef(err error, format string, args ...any) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf(format+": %w", append(args, err)...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user