We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33573e2 + 946d109 commit 1f80c54Copy full SHA for 1f80c54
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