Remove unnecessary slash

This commit is contained in:
S1m 2024-01-16 20:07:01 +01:00
parent bb49730c91
commit cb96642fd9
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class DirectAccountFactory : AccountFactory {
val request = try {
Request.Builder()
.url("$url/$mApiEndpoint/")
.url("${url}$mApiEndpoint")
.build()
} catch (e: IllegalArgumentException) {
Toast.makeText(activity, "Expected URL scheme 'http' or 'https'", Toast.LENGTH_SHORT).show()

View File

@ -90,7 +90,7 @@ object Distributor {
fun getEndpoint(context: Context, connectorToken: String): String {
val db = getDb(context)
val appToken = db.getAppToken(connectorToken)
return "${getAccount(context)?.url}$mApiEndpoint/push/$appToken"
return "${getAccount(context)?.url}${mApiEndpoint}push/$appToken"
}
fun checkToken(context: Context, connectorToken: String, app: String): String {