Remove redundant check for in-memory variable since background task runs on a separate isolate

This commit is contained in:
vishnukvmd 2021-11-27 21:12:52 +05:30
parent 9cdf60df43
commit ae1f28dac5

View file

@ -66,13 +66,9 @@ Future<void> _runInForeground() async {
}
Future _runBackgroundTask(String taskId) async {
if (_initializationStatus == null) {
_runWithLogs(() async {
_runInBackground(taskId);
}, prefix: "[bg]");
} else {
_runWithLogs(() async {
_runInBackground(taskId);
}
}, prefix: "[bg]");
}
Future<void> _runInBackground(String taskId) async {