From 21188f0952470fd8d0cdf10b667d20dfa18865c4 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 17 Feb 2020 21:25:22 +0100 Subject: Go fmt --- appservice/matrix.go | 2 +- appservice/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appservice/matrix.go b/appservice/matrix.go index a1cc759..b2da2f2 100644 --- a/appservice/matrix.go +++ b/appservice/matrix.go @@ -10,8 +10,8 @@ import ( log "github.com/sirupsen/logrus" - . "git.deuxfleurs.fr/Deuxfleurs/easybridge/mxlib" "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector" + . "git.deuxfleurs.fr/Deuxfleurs/easybridge/mxlib" ) const EASYBRIDGE_SYSTEM_PROTOCOL string = "✯◡✯" diff --git a/appservice/server.go b/appservice/server.go index 2585e2a..42dd78b 100644 --- a/appservice/server.go +++ b/appservice/server.go @@ -85,7 +85,7 @@ func handleTxn(w http.ResponseWriter, r *http.Request) { for i := range txn.Events { ev := &txn.Events[i] - if strings.HasPrefix(ev.Sender, "@" + registration.SenderLocalpart) { + if strings.HasPrefix(ev.Sender, "@"+registration.SenderLocalpart) { // Don't do anything with ezbr events that come back to us continue } -- cgit v1.2.3