aboutsummaryrefslogtreecommitdiff
path: root/federationapi
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-06-19 14:05:03 +0100
committerGitHub <noreply@github.com>2019-06-19 14:05:03 +0100
commitbc382bba4623a1c7ae16535541f2f4b23708999c (patch)
tree9149778f259732f866b5265f531a10158dd2eceb /federationapi
parent7a2d5b17b98172b11ebcf2aa260745d0dccb2a1a (diff)
Fix pipeline, emoji and syntax (#713)
Fixes #697 Switched to golangci-lint, fixes issues with buildkite and does some linting fixes to appease the new linters.
Diffstat (limited to 'federationapi')
-rw-r--r--federationapi/routing/state.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/federationapi/routing/state.go b/federationapi/routing/state.go
index 130f8a4f..58398bde 100644
--- a/federationapi/routing/state.go
+++ b/federationapi/routing/state.go
@@ -75,7 +75,8 @@ func parseEventIDParam(
) (eventID string, resErr *util.JSONResponse) {
URL, err := url.Parse(request.RequestURI())
if err != nil {
- *resErr = util.ErrorResponse(err)
+ response := util.ErrorResponse(err)
+ resErr = &response
return
}