mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
Add and fix forcetypeassert
This commit is contained in:
parent
db8be91d8b
commit
25b790d025
2 changed files with 4 additions and 3 deletions
|
@ -31,16 +31,15 @@ linters:
|
||||||
# We should strive to enable these:
|
# We should strive to enable these:
|
||||||
- wrapcheck
|
- wrapcheck
|
||||||
- goerr113
|
- goerr113
|
||||||
- forcetypeassert
|
|
||||||
- dupl
|
- dupl
|
||||||
- makezero
|
- makezero
|
||||||
- paralleltest
|
|
||||||
|
|
||||||
# We might want to enable this, but it might be a lot of work
|
# We might want to enable this, but it might be a lot of work
|
||||||
- cyclop
|
- cyclop
|
||||||
- nestif
|
- nestif
|
||||||
- wsl # might be incompatible with gofumpt
|
- wsl # might be incompatible with gofumpt
|
||||||
- testpackage
|
- testpackage
|
||||||
|
- paralleltest
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
varnamelen:
|
varnamelen:
|
||||||
|
|
|
@ -350,7 +350,9 @@ func (h *Headscale) isOutdated(machine *Machine) bool {
|
||||||
|
|
||||||
namespaces := make([]string, namespaceSet.Size())
|
namespaces := make([]string, namespaceSet.Size())
|
||||||
for index, namespace := range namespaceSet.List() {
|
for index, namespace := range namespaceSet.List() {
|
||||||
namespaces[index] = namespace.(string)
|
if name, ok := namespace.(string); ok {
|
||||||
|
namespaces[index] = name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lastChange := h.getLastStateChange(namespaces...)
|
lastChange := h.getLastStateChange(namespaces...)
|
||||||
|
|
Loading…
Reference in a new issue