From f483fb437e03a3bf8153425b6ecdfcd2e91797c7 Mon Sep 17 00:00:00 2001 From: Lukas Lihotzki Date: Mon, 24 Feb 2020 17:06:07 +0100 Subject: [PATCH] [Client] Remove unused variable in upload --- lib/src/client.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 615a360..13c81c6 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -875,7 +875,6 @@ class Client { /// Uploads a file with the name [fileName] as base64 encoded to the server /// and returns the mxc url as a string. Future upload(MatrixFile file) async { - dynamic fileBytes; // For testing if (this.homeserver.toLowerCase() == "https://fakeserver.notexisting") { return "mxc://example.com/AQwafuaFswefuhsfAFAgsw"; @@ -890,7 +889,7 @@ class Client { streamedRequest.contentLength = await file.bytes.length; streamedRequest.sink.add(file.bytes); streamedRequest.sink.close(); - print("[UPLOADING] $fileName, size: ${fileBytes?.length}"); + print("[UPLOADING] $fileName"); var streamedResponse = await streamedRequest.send(); Map jsonResponse = json.decode( String.fromCharCodes(await streamedResponse.stream.first),