Skip to content

Commit

Permalink
remove redundant set state
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll committed Nov 15, 2023
1 parent f034e1a commit 9c437ac
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,9 @@ class _DevToolsMenuState extends State<_DevToolsMenu> {
void _initExtensions() {
final sessionRootPath = widget.session.projectRootPath;
if (sessionRootPath != null) {
setState(() {
_extensionServiceForSession =
ExtensionService(fixedAppRootPath: sessionRootPath);
unawaited(_extensionServiceForSession!.initialize());
});
_extensionServiceForSession =
ExtensionService(fixedAppRootPath: sessionRootPath);
unawaited(_extensionServiceForSession!.initialize());
}
}

Expand Down

0 comments on commit 9c437ac

Please sign in to comment.