libct/configs: use slices.Delete

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-03-28 18:50:00 -07:00
parent 0fc2338d59
commit ef5acfab4f
+2 -1
View File
@@ -3,6 +3,7 @@ package configs
import (
"fmt"
"os"
"slices"
"sync"
)
@@ -98,7 +99,7 @@ func (n *Namespaces) Remove(t NamespaceType) bool {
if i == -1 {
return false
}
*n = append((*n)[:i], (*n)[i+1:]...)
*n = slices.Delete((*n), i, i+1)
return true
}