Skip to content

Commit

Permalink
Fix static analysis issues for dart 3.6 (#2462)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored Dec 11, 2024
1 parent f9eef81 commit 219fe67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/src/callable/built_in.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ final class BuiltInCallable implements Callable, AsyncBuiltInCallable {
// If two overloads have the same mismatch distance, favor the overload
// that has more arguments.
if (mismatchDistance.abs() == minMismatchDistance.abs() &&
mismatchDistance < 0) continue;
mismatchDistance < 0) {
continue;
}
}

minMismatchDistance = mismatchDistance;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/embedded/compilation_dispatcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ final class CompilationDispatcher {
case InboundMessage_Message.notSet:
throw parseError("InboundMessage.message is not set.");

default:
default: // ignore: unreachable_switch_default
throw parseError(
"Unknown message type: ${message.toDebugString()}");
}
Expand Down

0 comments on commit 219fe67

Please sign in to comment.