From 93820d7df2ba3609b50373b5fbcef0362f8a0830 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Tue, 6 Oct 2020 23:36:40 +0300 Subject: [PATCH] Formatting --- lib/src/client.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 331e8ca..d6794b4 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -222,7 +222,7 @@ class Client extends MatrixApi { ) async { final response = await http .get('https://${MatrixIdOrDomain.domain}/.well-known/matrix/client'); - WellKnownInformations wellKnown = WellKnownInformations.fromJson(json.decode(response.body)); + var wellKnown = WellKnownInformations.fromJson(json.decode(response.body)); if (Uri.parse(wellKnown.mHomeserver.baseUrl).host != MatrixIdOrDomain.domain) { final response = await http .get('https://${Uri.parse(wellKnown.mHomeserver.baseUrl).host}/.well-known/matrix/client'); @@ -232,10 +232,10 @@ class Client extends MatrixApi { } Future getWellKnownInformationsByDomain(dynamic serverUrl) async { - Uri homeserver = (serverUrl is Uri) ? serverUrl : Uri.parse(serverUrl); + var homeserver = (serverUrl is Uri) ? serverUrl : Uri.parse(serverUrl); final response = await http .get('https://${homeserver.host}/.well-known/matrix/client'); - WellKnownInformations wellKnown = WellKnownInformations.fromJson(json.decode(response.body)); + var wellKnown = WellKnownInformations.fromJson(json.decode(response.body)); if (Uri.parse(wellKnown.mHomeserver.baseUrl).host != homeserver.host) { final response = await http .get('https://${Uri.parse(wellKnown.mHomeserver.baseUrl).host}/.well-known/matrix/client');