add missing return

This commit is contained in:
AJ ONeal 2020-08-14 02:17:13 -06:00
parent 6ef812cfcb
commit 7db8085e03
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ func routeAll() chi.Router {
log.Printf("/api/register-device/\n")
log.Println(err)
http.Error(w, msg, http.StatusNotFound)
return
}
if "" != original.MachinePPID {
msg := `{"error":"the presented key has already been used"}`