Remove redundant nil nftResult handling
This is already caught and handled before the switch logic and would hence never be reached here. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
f2821a9293
commit
1d5c6e41dc
@ -133,8 +133,6 @@ func handleSetRoute(w http.ResponseWriter, r *http.Request) {
|
|||||||
doReturn(w, http.StatusOK, "already exists")
|
doReturn(w, http.StatusOK, "already exists")
|
||||||
case "added":
|
case "added":
|
||||||
doReturn(w, http.StatusCreated, "ok")
|
doReturn(w, http.StatusCreated, "ok")
|
||||||
case nil:
|
|
||||||
doReturn(w, http.StatusInternalServerError, "failure")
|
|
||||||
default:
|
default:
|
||||||
doReturn(w, http.StatusInternalServerError, "unhandled result")
|
doReturn(w, http.StatusInternalServerError, "unhandled result")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user