add missing return
This commit is contained in:
parent
6ef812cfcb
commit
7db8085e03
|
@ -167,6 +167,7 @@ func routeAll() chi.Router {
|
||||||
log.Printf("/api/register-device/\n")
|
log.Printf("/api/register-device/\n")
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
http.Error(w, msg, http.StatusNotFound)
|
http.Error(w, msg, http.StatusNotFound)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if "" != original.MachinePPID {
|
if "" != original.MachinePPID {
|
||||||
msg := `{"error":"the presented key has already been used"}`
|
msg := `{"error":"the presented key has already been used"}`
|
||||||
|
|
Loading…
Reference in New Issue