mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
convert uses of interface{} to any
Done via:
find . -name "*.go" | xargs sed -i -E 's/interface\{\}/any/g'
PiperOrigin-RevId: 487033228
This commit is contained in:
committed by
gVisor bot
parent
c82b70015d
commit
d8aa09e04c
@@ -429,7 +429,7 @@ type cgroupJSONSystemd struct {
|
||||
}
|
||||
|
||||
type cgroupJSONUnknown struct {
|
||||
Cgroup interface{} `json:"cgroupunknown"`
|
||||
Cgroup any `json:"cgroupunknown"`
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements json.Unmarshaler.UnmarshalJSON
|
||||
|
||||
@@ -292,14 +292,14 @@ func addIOProps(props []systemdDbus.Property, name string, devs []specs.LinuxThr
|
||||
return props
|
||||
}
|
||||
|
||||
func (c *cgroupSystemd) addProp(name string, value interface{}) {
|
||||
func (c *cgroupSystemd) addProp(name string, value any) {
|
||||
if value == nil {
|
||||
return
|
||||
}
|
||||
c.properties = append(c.properties, newProp(name, value))
|
||||
}
|
||||
|
||||
func newProp(name string, units interface{}) systemdDbus.Property {
|
||||
func newProp(name string, units any) systemdDbus.Property {
|
||||
return systemdDbus.Property{
|
||||
Name: name,
|
||||
Value: dbus.MakeVariant(units),
|
||||
|
||||
@@ -237,7 +237,7 @@ func filterProperties(got []systemdDbus.Property, want []systemdDbus.Property) [
|
||||
if want == nil {
|
||||
return nil
|
||||
}
|
||||
filterMap := map[string]interface{}{}
|
||||
filterMap := map[string]any{}
|
||||
for _, prop := range want {
|
||||
filterMap[prop.Name] = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user