Skip to content

Commit

Permalink
analysis fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarra committed Dec 18, 2024
1 parent 773bd35 commit 4e97888
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class DevServerDomain extends DomainBase {
'applicationId': applicationId,
},
);
} catch (e) {
} on Exception catch (e) {
return DaemonResponse.error(
id: request.id,
error: {
Expand Down Expand Up @@ -186,7 +186,7 @@ class DevServerDomain extends DomainBase {
'exitCode': exitCode.code,
},
);
} catch (e) {
} on Exception catch (e) {
if (!runner.isCompleted) {
_devServerRunners[applicationId] = runner;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class RouteConfigurationDomain extends DomainBase {
'exitCode': exitCode.code,
},
);
} catch (e) {
} on Exception catch (e) {
if (!watcher.isCompleted) {
_routeConfigurationWatchers[watcherId] = watcher;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class RouteConfigurationWatcher {
final projectDirectory = workingDirectory;
try {
routeConfiguration = _routeConfigurationBuilder(projectDirectory);
} catch (error) {
} on Exception catch (error) {
logger.err('$error');
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void main() {
tearDown(() {
try {
tempDir.deleteSync(recursive: true);
} catch (_) {}
} on Exception catch (_) {}
});

test('throws when a pubspec.yaml does not exist', () {
Expand Down

0 comments on commit 4e97888

Please sign in to comment.