mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user