Skip to content

Commit 6736437

Browse files
committed
fix: remove unused stack trace variables from catch blocks in polling and connectivity services
1 parent 3d991da commit 6736437

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/services/connectivity_lifecycle_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class ConnectivityLifecycleService implements Disposable {
212212
} else {
213213
await run(item);
214214
}
215-
} catch (e, st) {
215+
} catch (e) {
216216
_logger.warning('ConnectivityLifecycleService: listener task failed', e);
217217
}
218218
}
@@ -236,7 +236,7 @@ class ConnectivityLifecycleService implements Disposable {
236236
} else {
237237
await run(item);
238238
}
239-
} catch (e, st) {
239+
} catch (e) {
240240
_logger.warning('ConnectivityLifecycleService: listener task failed', e);
241241
}
242242
}());

lib/services/polling_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class PollingService implements Disposable {
246246
_logger.finest('PollingService: refresh() succeeded for $listener');
247247
config.consecutiveErrors = 0;
248248
config.lastSuccessAt = clock.now();
249-
} catch (e, st) {
249+
} catch (e) {
250250
config.consecutiveErrors++;
251251
config.lastError = e;
252252
config.lastErrorAt = clock.now();
@@ -281,7 +281,7 @@ class PollingService implements Disposable {
281281
config.consecutiveErrors = 0;
282282
config.lastSuccessAt = clock.now();
283283
}
284-
} catch (e, st) {
284+
} catch (e) {
285285
config.consecutiveErrors++;
286286
config.lastError = e;
287287
config.lastErrorAt = clock.now();

0 commit comments

Comments
 (0)