fix: remove stale duplicate JSDoc on translateAbortOrNetwork

The function carried two consecutive JSDoc blocks; the first was an
outdated short version missing the timeout-recovery contract. Keep only
the accurate detailed block.
This commit is contained in:
Dudu-0223
2026-06-25 18:00:07 +08:00
parent a1624530ee
commit 1cd3a454da

View File

@@ -245,12 +245,6 @@ function resolveRedirect(location: string, base: URL): URL {
}
}
/**
* Translate a thrown fetch/stream error into a `WebError`. Our own
* `WEB_FETCH_TIMEOUT` (passed to `controller.abort(reason)`) and any other
* already-typed `WebError` pass through; an `AbortError` becomes `WEB_ABORTED`;
* anything else is a transport/network failure (`WEB_PROVIDER_ERROR`).
*/
/**
* Translate a thrown fetch/stream error into a `WebError`. Our own
* `WEB_FETCH_TIMEOUT` (passed to `controller.abort(reason)`) and any other