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()}"); }