mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53: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
|
// Check if the url has trailing /'s. If so, remove them
|
||||||
for strings.HasSuffix(appservice.URL, "/") {
|
appservice.URL = strings.TrimRight(appservice.URL, "/")
|
||||||
appservice.URL = strings.TrimSuffix(appservice.URL, "/")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if we've already seen this ID. No two application services
|
// Check if we've already seen this ID. No two application services
|
||||||
// can have the same ID or token.
|
// can have the same ID or token.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue