Skip to content

Commit 56a8014

Browse files
committed
Replace interface{} with any
The keyword any is available since Go 1.18. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 2a61bab commit 56a8014

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

devices/systemd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func systemdProperties(r *cgroups.Resources, sdVer int) ([]systemdDbus.Property,
166166
return properties, nil
167167
}
168168

169-
func newProp(name string, units interface{}) systemdDbus.Property {
169+
func newProp(name string, units any) systemdDbus.Property {
170170
return systemdDbus.Property{
171171
Name: name,
172172
Value: dbus.MakeVariant(units),

systemd/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func ExpandSlice(slice string) (string, error) {
8989
return path, nil
9090
}
9191

92-
func newProp(name string, units interface{}) systemdDbus.Property {
92+
func newProp(name string, units any) systemdDbus.Property {
9393
return systemdDbus.Property{
9494
Name: name,
9595
Value: dbus.MakeVariant(units),

0 commit comments

Comments
 (0)