aboutsummaryrefslogtreecommitdiff
path: root/syncapi/routing
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-08-05 11:12:41 +0200
committerGitHub <noreply@github.com>2022-08-05 11:12:41 +0200
commit1b7f84250a46b401eccb89acafdef1b379f2dbc0 (patch)
treec2b9bfd996dddda3236af6299c603d8541f5f64b /syncapi/routing
parentde78eab63a99653edf68f783e263688ad4b701d8 (diff)
Fix linter issues (#2624)
* Try that again * All hail the mighty linter? * And once again * goimport all the things
Diffstat (limited to 'syncapi/routing')
-rw-r--r--syncapi/routing/filter.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/syncapi/routing/filter.go b/syncapi/routing/filter.go
index 1a10bd64..b41714df 100644
--- a/syncapi/routing/filter.go
+++ b/syncapi/routing/filter.go
@@ -19,13 +19,14 @@ import (
"io/ioutil"
"net/http"
+ "github.com/matrix-org/gomatrixserverlib"
+ "github.com/matrix-org/util"
+ "github.com/tidwall/gjson"
+
"github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/sync"
"github.com/matrix-org/dendrite/userapi/api"
- "github.com/matrix-org/gomatrixserverlib"
- "github.com/matrix-org/util"
- "github.com/tidwall/gjson"
)
// GetFilter implements GET /_matrix/client/r0/user/{userId}/filter/{filterId}
@@ -65,7 +66,9 @@ type filterResponse struct {
FilterID string `json:"filter_id"`
}
-//PutFilter implements POST /_matrix/client/r0/user/{userId}/filter
+// PutFilter implements
+//
+// POST /_matrix/client/r0/user/{userId}/filter
func PutFilter(
req *http.Request, device *api.Device, syncDB storage.Database, userID string,
) util.JSONResponse {