Skip to content

Commit 79a9bc9

Browse files
authored
Fix DCM analyzer warnings (#2094)
1 parent 2a62503 commit 79a9bc9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dwds/lib/src/debugging/debugger.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ class _Breakpoints extends Domain {
976976
}
977977

978978
/// Calls the Chrome protocol setBreakpoint and returns the remote ID.
979-
Future<String?> _setJsBreakpoint(Location location) async {
979+
Future<String?> _setJsBreakpoint(Location location) {
980980
// The module can be loaded from a nested path and contain an ETAG suffix.
981981
final urlRegex = '.*${location.jsLocation.module}.*';
982982
// Prevent `Aww, snap!` errors when setting multiple breakpoints

dwds/lib/src/debugging/frame_computer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class FrameComputer {
3434

3535
/// Translates Chrome callFrames contained in [DebuggerPausedEvent] into Dart
3636
/// [Frame]s.
37-
Future<List<Frame>> calculateFrames({int? limit}) async {
37+
Future<List<Frame>> calculateFrames({int? limit}) {
3838
return _queue.run(() async {
3939
if (limit != null && _computedFrames.length >= limit) {
4040
return _computedFrames.take(limit).toList();

dwds/lib/src/debugging/inspector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ class AppInspector implements AppInspectorInterface {
577577
/// reload the inspector will get re-created.
578578
///
579579
/// Returns the list of scripts refs cached.
580-
Future<List<ScriptRef>> _populateScriptCaches() async {
580+
Future<List<ScriptRef>> _populateScriptCaches() {
581581
return _scriptCacheMemoizer.runOnce(() async {
582582
final scripts = await globalLoadStrategy
583583
.metadataProviderFor(appConnection.request.entrypointPath)

dwds/lib/src/handlers/dev_handler.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,14 @@ class DevHandler {
537537

538538
while (await extensionBackend.connections.hasNext) {
539539
final extensionDebugger = await extensionBackend.extensionDebugger;
540-
await _startExtensionDebugService(extensionDebugger);
540+
_startExtensionDebugService(extensionDebugger);
541541
}
542542
}
543543

544544
/// Starts a [DebugService] for Dart Debug Extension.
545-
Future<void> _startExtensionDebugService(
545+
void _startExtensionDebugService(
546546
ExtensionDebugger extensionDebugger,
547-
) async {
547+
) {
548548
// Waits for a `DevToolsRequest` to be sent from the extension background
549549
// when the extension is clicked.
550550
extensionDebugger.devToolsRequestStream.listen((devToolsRequest) async {

0 commit comments

Comments
 (0)