Skip to content

Commit

Permalink
Remove unused variable assignments.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-rahlf committed Jul 6, 2023
1 parent 3f59ea4 commit cbad39c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions homeconnect/lib/src/client/client_dart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class HomeConnectApi {
}

Future<http.Response> 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) {
Expand All @@ -74,7 +74,7 @@ class HomeConnectApi {
}

Future<http.Response> get(String resource) async {
HomeConnectAuthCredentials? userCredentials = await checkTokenIntegrity();
await checkTokenIntegrity();
final uri = baseUrl.join('/api/homeappliances/$resource');
final response = await client.get(
uri,
Expand All @@ -88,7 +88,7 @@ class HomeConnectApi {
}

Future<http.Response> delete(String resource) async {
HomeConnectAuthCredentials? userCredentials = await checkTokenIntegrity();
await checkTokenIntegrity();
final uri = baseUrl.join('/api/homeappliances/$resource');
final response = await client.delete(
uri,
Expand Down Expand Up @@ -131,7 +131,7 @@ class HomeConnectApi {

Future<void> 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 {
Expand Down

0 comments on commit cbad39c

Please sign in to comment.