mirror of https://github.com/matrix-org/gomatrix
Run gofmt
This commit is contained in:
parent
44bc4ee622
commit
4fb520ebac
|
@ -125,6 +125,6 @@ func ExtractUserLocalpart(userID string) (string, error) {
|
||||||
}
|
}
|
||||||
return strings.TrimPrefix(
|
return strings.TrimPrefix(
|
||||||
strings.SplitN(userID, ":", 2)[0], // @foo:bar:8448 => [ "@foo", "bar:8448" ]
|
strings.SplitN(userID, ":", 2)[0], // @foo:bar:8448 => [ "@foo", "bar:8448" ]
|
||||||
"@", // remove "@" prefix
|
"@", // remove "@" prefix
|
||||||
), nil
|
), nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue