Skip to content

Commit

Permalink
Fix missing error check.
Browse files Browse the repository at this point in the history
  • Loading branch information
cure committed Nov 13, 2021
1 parent acf7e46 commit 34dba0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 34dba0a

Please sign in to comment.