mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-28 02:37:50 +00:00
Fix missing error check.
This commit is contained in:
parent
acf7e462ad
commit
34dba0ade8
@ -68,7 +68,10 @@ func (h *Headscale) DestroyNamespace(name string) error {
|
||||
return err
|
||||
}
|
||||
for _, p := range keys {
|
||||
h.DestroyPreAuthKey(&p)
|
||||
err = h.DestroyPreAuthKey(&p)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if result := h.db.Unscoped().Delete(&n); result.Error != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user