diff options
author | S7evinK <tfaelligen@gmail.com> | 2020-10-01 21:00:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 20:00:56 +0100 |
commit | 3e01db0049a839eb163523990b383156b69527c2 (patch) | |
tree | 589412a5caf83c37a3661618e11c5f8d4d7dad21 /federationapi/routing/join.go | |
parent | 7048532bc4adcc017739fae358fd6b6c44b63ebd (diff) |
Fix golangci-lint issues (#1464)
* Fix S1039: unnecessary use of fmt.Sprintf
* Fix S1036: unnecessary guard around map access
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
Diffstat (limited to 'federationapi/routing/join.go')
-rw-r--r-- | federationapi/routing/join.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 9fa0794e..c637116f 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -192,9 +192,7 @@ func SendJoin( if event.StateKey() == nil || event.StateKeyEquals("") { return util.JSONResponse{ Code: http.StatusBadRequest, - JSON: jsonerror.BadJSON( - fmt.Sprintf("No state key was provided in the join event."), - ), + JSON: jsonerror.BadJSON("No state key was provided in the join event."), } } |