mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-08-06 18:24:25 +08:00
revert: "refactor: update deprecated and minor code refactors (#710)"
This reverts commit 6829d3cdeac94fb305b8885570840fe25769b6a6. Signed-off-by: EvadeMaster <93124920+EvadeMaster@users.noreply.github.com>
This commit is contained in:
@ -42,7 +42,7 @@ class GithubAPI {
|
||||
captureFailedRequests: true,
|
||||
);
|
||||
} on Exception catch (e, s) {
|
||||
Sentry.captureException(e, stackTrace: s).ignore();
|
||||
await Sentry.captureException(e, stackTrace: s);
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ class GithubAPI {
|
||||
try {
|
||||
await _dioCacheManager.clearAll();
|
||||
} on Exception catch (e, s) {
|
||||
Sentry.captureException(e, stackTrace: s).ignore();
|
||||
await Sentry.captureException(e, stackTrace: s);
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ class GithubAPI {
|
||||
);
|
||||
return response.data[0];
|
||||
} on Exception catch (e, s) {
|
||||
Sentry.captureException(e, stackTrace: s).ignore();
|
||||
await Sentry.captureException(e, stackTrace: s);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -93,7 +93,7 @@ class GithubAPI {
|
||||
)
|
||||
.toList();
|
||||
} on Exception catch (e, s) {
|
||||
Sentry.captureException(e, stackTrace: s).ignore();
|
||||
await Sentry.captureException(e, stackTrace: s);
|
||||
return List.empty();
|
||||
}
|
||||
}
|
||||
@ -113,7 +113,7 @@ class GithubAPI {
|
||||
}
|
||||
}
|
||||
} on Exception catch (e, s) {
|
||||
Sentry.captureException(e, stackTrace: s).ignore();
|
||||
await Sentry.captureException(e, stackTrace: s);
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
@ -128,7 +128,7 @@ class GithubAPI {
|
||||
patches = list.map((patch) => Patch.fromJson(patch)).toList();
|
||||
}
|
||||
} on Exception catch (e, s) {
|
||||
Sentry.captureException(e, stackTrace: s).ignore();
|
||||
await Sentry.captureException(e, stackTrace: s);
|
||||
return List.empty();
|
||||
}
|
||||
return patches;
|
||||
@ -143,7 +143,7 @@ class GithubAPI {
|
||||
return 'Unknown';
|
||||
}
|
||||
} on Exception catch (e, s) {
|
||||
Sentry.captureException(e, stackTrace: s).ignore();
|
||||
await Sentry.captureException(e, stackTrace: s);
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user