Explorar o código

oci/deviceCgroup(): remove redundant variable

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn %!s(int64=5) %!d(string=hai) anos
pai
achega
bd0c2b3581
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      oci/devices_linux.go

+ 1 - 2
oci/devices_linux.go

@@ -25,10 +25,9 @@ func Device(d *configs.Device) specs.LinuxDevice {
 }
 
 func deviceCgroup(d *configs.Device) specs.LinuxDeviceCgroup {
-	t := string(d.Type)
 	return specs.LinuxDeviceCgroup{
 		Allow:  true,
-		Type:   t,
+		Type:   string(d.Type),
 		Major:  &d.Major,
 		Minor:  &d.Minor,
 		Access: d.Permissions,