Skip to content

Commit 219fe67

Browse files
authored
Fix static analysis issues for dart 3.6 (#2462)
1 parent f9eef81 commit 219fe67

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/src/callable/built_in.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ final class BuiltInCallable implements Callable, AsyncBuiltInCallable {
109109
// If two overloads have the same mismatch distance, favor the overload
110110
// that has more arguments.
111111
if (mismatchDistance.abs() == minMismatchDistance.abs() &&
112-
mismatchDistance < 0) continue;
112+
mismatchDistance < 0) {
113+
continue;
114+
}
113115
}
114116

115117
minMismatchDistance = mismatchDistance;

lib/src/embedded/compilation_dispatcher.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ final class CompilationDispatcher {
9191
case InboundMessage_Message.notSet:
9292
throw parseError("InboundMessage.message is not set.");
9393

94-
default:
94+
default: // ignore: unreachable_switch_default
9595
throw parseError(
9696
"Unknown message type: ${message.toDebugString()}");
9797
}

0 commit comments

Comments
 (0)