mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 12:05:26 +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…
Reference in New Issue
Block a user