mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-13 01:43:09 -06:00
Use TrimRight instead
This commit is contained in:
parent
5fdcc5e77e
commit
1e16961fd6
|
|
@ -189,9 +189,7 @@ func checkErrors(config *Dendrite) (err error) {
|
|||
}
|
||||
|
||||
// Check if the url has trailing /'s. If so, remove them
|
||||
for strings.HasSuffix(appservice.URL, "/") {
|
||||
appservice.URL = strings.TrimSuffix(appservice.URL, "/")
|
||||
}
|
||||
appservice.URL = strings.TrimRight(appservice.URL, "/")
|
||||
|
||||
// Check if we've already seen this ID. No two application services
|
||||
// can have the same ID or token.
|
||||
|
|
|
|||
Loading…
Reference in a new issue