From 4fb520ebacc73f8a0059d0cf412b8eb1ead9ebeb Mon Sep 17 00:00:00 2001 From: Reverite Date: Thu, 25 Apr 2019 15:16:37 -0700 Subject: [PATCH] Run gofmt --- client.go | 2 +- userids.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 9eee501..72e2cac 100644 --- a/client.go +++ b/client.go @@ -188,7 +188,7 @@ func (cli *Client) StopSync() { // body is nil. // // Returns an error if the response is not 2xx along with the HTTP body bytes if it got that far. This error is -// an HTTPError which includes the returned HTTP status code, byte contents of the response body and possibly a +// an HTTPError which includes the returned HTTP status code, byte contents of the response body and possibly a // RespError as the WrappedError, if the HTTP body could be decoded as a RespError. func (cli *Client) MakeRequest(method string, httpURL string, reqBody interface{}, resBody interface{}) error { var req *http.Request diff --git a/userids.go b/userids.go index 23e7807..70002c5 100644 --- a/userids.go +++ b/userids.go @@ -125,6 +125,6 @@ func ExtractUserLocalpart(userID string) (string, error) { } return strings.TrimPrefix( strings.SplitN(userID, ":", 2)[0], // @foo:bar:8448 => [ "@foo", "bar:8448" ] - "@", // remove "@" prefix + "@", // remove "@" prefix ), nil }