Skip to content

Commit

Permalink
Format use_rethrow_when_possible
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Dec 31, 2023
1 parent 36e1445 commit 9ff5e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/pages/database_download/database_download_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class DataBaseDownloadPageState extends State<DataBaseDownloadPage> {
} catch (e, st) {
Logger.error('[DBDownload] E: $e\n'
'$st');
if (doThrow) throw e;
if (doThrow) rethrow;
}

setState(() {
Expand Down Expand Up @@ -331,7 +331,7 @@ class DataBaseDownloadPageState extends State<DataBaseDownloadPage> {
} catch (e, st) {
Logger.error('[DBDownload] E: $e\n'
'$st');
if (doThrow) throw e;
if (doThrow) rethrow;
}

setState(() {
Expand Down
2 changes: 1 addition & 1 deletion lib/version/sync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class SyncManager {
} catch (e, st) {
Logger.error('[Sync-check] E: $e\n'
'$st');
if (doThrow) throw e;
if (doThrow) rethrow;
}
}

Expand Down

0 comments on commit 9ff5e2b

Please sign in to comment.