From b1f17f78c8b14260c97f1e9a9160ee37c39d9fc4 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Fri, 19 May 2023 10:06:44 -0600 Subject: [PATCH] Use fallthrough in error switch to consolidate final error codes --- federationapi/routing/join.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 4f2ccf5a5..cbdeca51e 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -176,7 +176,7 @@ func MakeJoin( case spec.ErrorNotFound: code = http.StatusNotFound case spec.ErrorUnableToAuthoriseJoin: - code = http.StatusBadRequest + fallthrough // http.StatusBadRequest case spec.ErrorBadJSON: code = http.StatusBadRequest }