Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed May 13, 2024
1 parent c0368b0 commit b98e3b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/webserver/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ func registerDevice(w http.ResponseWriter, r *http.Request) {

} else {

// Make sure not to accidentally shadow the global err here as we're using a defer to monitor failures to delete the device
var device data.Device
device, err = user.AddDevice(publickey)
if err != nil {
Expand Down

0 comments on commit b98e3b9

Please sign in to comment.