diff options
author | 2023-01-31 17:55:16 -0800 | |
---|---|---|
committer | 2023-01-31 17:55:16 -0800 | |
commit | cc4326cd829decc95d1f1f23998f97705637e04b (patch) | |
tree | 9ccaa829b6d48af521d5e5fcdbabc0dac8d186af /src/bun.js/net.exports.js | |
parent | c57b37d29f9d04780c7f7917789cf8b424710d23 (diff) | |
download | bun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.gz bun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.zst bun-cc4326cd829decc95d1f1f23998f97705637e04b.zip |
Re-run prettier after changes
Diffstat (limited to 'src/bun.js/net.exports.js')
-rw-r--r-- | src/bun.js/net.exports.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/bun.js/net.exports.js b/src/bun.js/net.exports.js index b4229a271..6ed03d2b7 100644 --- a/src/bun.js/net.exports.js +++ b/src/bun.js/net.exports.js @@ -166,13 +166,7 @@ export const Socket = (function (InternalSocket) { #pendingRead; constructor(options) { - const { - signal, - write, - read, - allowHalfOpen = false, - ...opts - } = options || {}; + const { signal, write, read, allowHalfOpen = false, ...opts } = options || {}; super({ ...opts, allowHalfOpen, @@ -335,8 +329,7 @@ export const Socket = (function (InternalSocket) { } _write(chunk, encoding, callback) { - if (typeof chunk == "string" && encoding !== "utf8") - chunk = Buffer.from(chunk, encoding); + if (typeof chunk == "string" && encoding !== "utf8") chunk = Buffer.from(chunk, encoding); var written = this.#socket?.write(chunk); if (written == chunk.length) { callback(); |