mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Use string template syntax.
This commit is contained in:
parent
3e79da6a79
commit
178bdff62a
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ data class HomeServerConnectionConfig(
|
|||
*/
|
||||
fun withHomeServerUri(hsUri: Uri): Builder {
|
||||
if (hsUri.scheme != "http" && hsUri.scheme != "https") {
|
||||
throw RuntimeException("Invalid home server URI: " + hsUri)
|
||||
throw RuntimeException("Invalid home server URI: $hsUri")
|
||||
}
|
||||
// ensure trailing /
|
||||
val hsString = hsUri.toString().ensureTrailingSlash()
|
||||
|
|
Loading…
Reference in a new issue