From 2bd721707305288f80bcaeec1834cdfcb71885b7 Mon Sep 17 00:00:00 2001 From: Ben Konyi Date: Fri, 25 Jul 2025 09:44:17 -0700 Subject: [PATCH] [ dart:io ] Remove bad assert from socket profiling stat collection Fixes https://github.com/dart-lang/sdk/issues/61187 CoreLibraryReviewExempt:dart-io Change-Id: I66e06b546e9e40e58874da5d70b0f05647aac190 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442260 Reviewed-by: Samuel Rawlins Auto-Submit: Ben Konyi Commit-Queue: Samuel Rawlins --- sdk/lib/io/network_profiling.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/lib/io/network_profiling.dart b/sdk/lib/io/network_profiling.dart index 5bacb4c8e75..6bd6910d7ba 100644 --- a/sdk/lib/io/network_profiling.dart +++ b/sdk/lib/io/network_profiling.dart @@ -271,7 +271,6 @@ abstract class _SocketProfile { // Skip any socket that started before `_enableSocketProfiling` was turned // on. final stats = _idToSocketStatistic[idKey]; - assert(stats != null, '"$idKey" not found in "_idToSocketStatistic" map'); if (stats == null) return; switch (type) { case _SocketProfileType.endTime: