refactor: remove unnecessary state changes

This commit is contained in:
sasanktumpati
2024-12-07 15:52:18 +05:30
parent 036bac311c
commit edd69b986a
4 changed files with 18 additions and 21 deletions

View File

@@ -107,7 +107,7 @@ Future<(HttpResponse?, Duration?, String?)> request(
return (response, stopwatch.elapsed, null);
} on http.ClientException catch (e) {
if (e.message.contains('Connection closed') ||
e.message.contains('abort')) {
e.message.contains('Connection attempt cancelled')) {
return (null, null, 'Request Cancelled');
} else {
return (null, null, e.toString());