mirror of https://github.com/matrix-org/gomatrix
Run gofmt
This commit is contained in:
parent
44bc4ee622
commit
4fb520ebac
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue