diff --git a/nftables-http-api.go b/nftables-http-api.go index cc50618..1a10acc 100644 --- a/nftables-http-api.go +++ b/nftables-http-api.go @@ -133,8 +133,6 @@ func handleSetRoute(w http.ResponseWriter, r *http.Request) { doReturn(w, http.StatusOK, "already exists") case "added": doReturn(w, http.StatusCreated, "ok") - case nil: - doReturn(w, http.StatusInternalServerError, "failure") default: doReturn(w, http.StatusInternalServerError, "unhandled result") }