diff --git a/pkg/apigateway/handler/misc.go b/pkg/apigateway/handler/misc.go index aa3bd6248b5..4c10b1f0cd7 100644 --- a/pkg/apigateway/handler/misc.go +++ b/pkg/apigateway/handler/misc.go @@ -230,8 +230,6 @@ func (mh *MiscHandler) DoBatchHostRegister(ctx context.Context, w http.ResponseW if e != nil { httperrors.JsonClientError(w, e) return - } else { - } hosts.WriteString(strings.Join(row, ",") + "\n")