mirror of
https://github.com/matrix-org/gomatrix
synced 2025-06-06 23:03:24 +00:00
Fixed lint error
This commit is contained in:
parent
2fe6744f03
commit
e20ba7d4fb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue