Skip to content

Commit b8e3c6d

Browse files
authored
fix ReferenceError in NodeSocket.fromNet (#5642)
1 parent 8e71b72 commit b8e3c6d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.changeset/slick-views-cover.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@effect/platform-node-shared": patch
3+
"@effect/cluster": patch
4+
"@effect/platform-node": patch
5+
"@effect/rpc": patch
6+
"@effect/workflow": patch
7+
---
8+
9+
fix ReferenceError in NodeSocket.fromNet

packages/platform-node-shared/src/NodeSocket.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export const fromDuplex = <RO>(
9393
const fiberSet = yield* FiberSet.make<any, E | Socket.SocketError>().pipe(
9494
Scope.extend(scope)
9595
)
96-
// eslint-disable-next-line prefer-const
97-
let conn: Duplex | undefined
96+
97+
let conn: Duplex | undefined = undefined
9898
yield* Scope.addFinalizer(
9999
scope,
100100
Effect.sync(() => {

0 commit comments

Comments
 (0)