Removed duplicate code.

This commit is contained in:
Travis
2013-01-27 17:08:35 -08:00
parent 31cdc21fc2
commit 7aec01ee1c

View File

@@ -279,12 +279,6 @@ func (r *Register) ServeHTTP(w http.ResponseWriter, req *http.Request) {
common.SendError(w, 400, fmt.Sprintln("Could not register host!", err))
return
}
err = putRoute(&route)
if err != nil {
golog.Infoln("couldn't register host:", err)
common.SendError(w, 400, fmt.Sprintln("Could not register host!", err))
return
}
golog.Infoln("registered route:", route)
fmt.Fprintln(w, "Host registered successfully.")
}