Skip to content

Commit

Permalink
Changed return to await in dispose methods
Browse files Browse the repository at this point in the history
Applied the recommended change
  • Loading branch information
mitryp committed May 25, 2023
1 parent ff78b7c commit 1dc2ae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/implementations/debounce_lang_tool_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class DebounceLangToolService extends LanguageCheckService {
@override
Future<void> dispose() async {
await debouncing.close();

return baseService.dispose();
await baseService.dispose();
}
}
3 changes: 1 addition & 2 deletions lib/implementations/throttling_lang_tool_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class ThrottlingLangToolService extends LanguageCheckService {
@override
Future<void> dispose() async {
await throttling.close();

return baseService.dispose();
await baseService.dispose();
}
}

0 comments on commit 1dc2ae7

Please sign in to comment.