From 219fe67817a1efc769e6ff2a80a59e6ac83def9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Wed, 11 Dec 2024 14:10:16 -0800 Subject: [PATCH] Fix static analysis issues for dart 3.6 (#2462) --- lib/src/callable/built_in.dart | 4 +++- lib/src/embedded/compilation_dispatcher.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/callable/built_in.dart b/lib/src/callable/built_in.dart index 1d58df9fe..5f646b2da 100644 --- a/lib/src/callable/built_in.dart +++ b/lib/src/callable/built_in.dart @@ -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; diff --git a/lib/src/embedded/compilation_dispatcher.dart b/lib/src/embedded/compilation_dispatcher.dart index 9862a97c1..83456445e 100644 --- a/lib/src/embedded/compilation_dispatcher.dart +++ b/lib/src/embedded/compilation_dispatcher.dart @@ -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()}"); }