refactor: remove unused capturedError variable in ServerPrototype (#21671)

### What does this PR do?

Removes the unused `capturedError` fixing the oxlint error. This
variable is never assigned to, hence the block on L1094 can never run.

### How did you verify your code works?

Existing tests
This commit is contained in:
Cameron
2025-08-08 00:56:25 +01:00
committed by GitHub
parent 2ed5b0ffad
commit 47c8a67b75

View File

@@ -1022,7 +1022,6 @@ const ServerPrototype = {
}
drainMicrotasks();
let capturedError;
let resolveFunction;
let didFinish = false;
@@ -1091,13 +1090,6 @@ const ServerPrototype = {
socket.cork();
if (capturedError) {
handle = undefined;
http_res[kCloseCallback] = undefined;
http_res.detachSocket(socket);
throw capturedError;
}
if (handle.finished || didFinish) {
handle = undefined;
http_res[kCloseCallback] = undefined;