[ 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 <srawlins@google.com>
Auto-Submit: Ben Konyi <bkonyi@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
Ben Konyi
2025-07-25 09:44:17 -07:00
committed by Commit Queue
parent 684a39190b
commit 2bd7217073
-1
View File
@@ -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: