Skip to content

Commit

Permalink
Fix err handling in router certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Nov 28, 2024
1 parent 7df5568 commit f3c7615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions router/certificates.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ func (c *Certificates) Update(db *database.Database) (err error) {

cert, e := certificate.Get(db, certId)
if e != nil {
if _, ok := e.(*database.NotFoundError); ok {
err = e
if _, ok := err.(*database.NotFoundError); ok {
cert = nil
e = nil
err = nil
} else {
err = e
return
}
}
Expand Down

0 comments on commit f3c7615

Please sign in to comment.