Add and fix forcetypeassert
This commit is contained in:
parent
db8be91d8b
commit
25b790d025
2 changed files with 4 additions and 3 deletions
|
@ -350,7 +350,9 @@ func (h *Headscale) isOutdated(machine *Machine) bool {
|
|||
|
||||
namespaces := make([]string, namespaceSet.Size())
|
||||
for index, namespace := range namespaceSet.List() {
|
||||
namespaces[index] = namespace.(string)
|
||||
if name, ok := namespace.(string); ok {
|
||||
namespaces[index] = name
|
||||
}
|
||||
}
|
||||
|
||||
lastChange := h.getLastStateChange(namespaces...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue