This commit is contained in:
2024-03-06 16:50:27 +03:00
parent 16cad7a3e7
commit 83bf1fb1fa
52 changed files with 715 additions and 1968 deletions

View File

@@ -20,8 +20,8 @@ func (lid ListInfoDisks) IDs() []uint64 {
// IDs gets array of PFWsIDs from ListPFW struct
func (lp ListPFW) IDs() []uint64 {
res := make([]uint64, 0, len(lp.Data))
for _, p := range lp.Data {
res := make([]uint64, 0, len(lp))
for _, p := range lp {
res = append(res, p.ID)
}
return res