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:
Georg Pfuetzenreuter 2024-08-30 20:37:44 +02:00
parent f2821a9293
commit 1d5c6e41dc
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -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")
} }