From cbad39c9fdd04be09f40f916b49b629395f7e9d7 Mon Sep 17 00:00:00 2001 From: Sebastian Rahlf Date: Thu, 6 Jul 2023 15:43:11 +0200 Subject: [PATCH] Remove unused variable assignments. --- homeconnect/lib/src/client/client_dart.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeconnect/lib/src/client/client_dart.dart b/homeconnect/lib/src/client/client_dart.dart index 4aa09ce..907bfd4 100644 --- a/homeconnect/lib/src/client/client_dart.dart +++ b/homeconnect/lib/src/client/client_dart.dart @@ -63,7 +63,7 @@ class HomeConnectApi { } Future put({required String resource, required String body}) async { - HomeConnectAuthCredentials? userCredentials = await checkTokenIntegrity(); + await checkTokenIntegrity(); final uri = baseUrl.join('/api/homeappliances/$resource'); final response = await client.put(uri, headers: commonHeaders, body: body); if (response.statusCode >= 200 && response.statusCode < 300) { @@ -74,7 +74,7 @@ class HomeConnectApi { } Future get(String resource) async { - HomeConnectAuthCredentials? userCredentials = await checkTokenIntegrity(); + await checkTokenIntegrity(); final uri = baseUrl.join('/api/homeappliances/$resource'); final response = await client.get( uri, @@ -88,7 +88,7 @@ class HomeConnectApi { } Future delete(String resource) async { - HomeConnectAuthCredentials? userCredentials = await checkTokenIntegrity(); + await checkTokenIntegrity(); final uri = baseUrl.join('/api/homeappliances/$resource'); final response = await client.delete( uri, @@ -131,7 +131,7 @@ class HomeConnectApi { Future openEventListenerChannel({required HomeDevice source}) async { final uri = baseUrl.join("/api/homeappliances/${source.info.haId}/events"); - HomeConnectAuthCredentials? userCredentials = await checkTokenIntegrity(); + await checkTokenIntegrity(); EventController eventController = EventController(); try {