mirror of
https://github.com/therootcompany/telebit.git
synced 2025-04-15 20:30:41 +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.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…
x
Reference in New Issue
Block a user