We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc3e949 + 73e78a5 commit 471862bCopy full SHA for 471862b
opts/throttledevice.go
@@ -94,7 +94,7 @@ func (opt *ThrottledeviceOpt) String() string {
94
95
// GetList returns a slice of pointers to ThrottleDevices.
96
func (opt *ThrottledeviceOpt) GetList() []*blkiodev.ThrottleDevice {
97
- out := make([]*blkiodev.ThrottleDevice, 0, len(opt.values))
+ out := make([]*blkiodev.ThrottleDevice, len(opt.values))
98
copy(out, opt.values)
99
return out
100
}
0 commit comments