mirror of
https://github.com/therootcompany/telebit.git
synced 2025-03-12 03:30:49 +00:00
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.Println(err)
|
||||
http.Error(w, msg, http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
if "" != original.MachinePPID {
|
||||
msg := `{"error":"the presented key has already been used"}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user