summaryrefslogtreecommitdiff
path: root/ext/net/01_net.js
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2022-03-19 11:26:54 +0200
committerGitHub <noreply@github.com>2022-03-19 18:26:54 +0900
commitad8e2383487e8ef4f15e7b86df80f6dc98fdcc79 (patch)
tree4fa99c3d7685b38c838150b82096885d8de23127 /ext/net/01_net.js
parentb01bc7faff5d9c034160fd41c507642c36b82b97 (diff)
chore(core,ext): minor JS optimisations (#13950)
Diffstat (limited to 'ext/net/01_net.js')
-rw-r--r--ext/net/01_net.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/net/01_net.js b/ext/net/01_net.js
index 803205319..11d6fbfac 100644
--- a/ext/net/01_net.js
+++ b/ext/net/01_net.js
@@ -279,9 +279,7 @@
}
send(p, addr) {
- const remote = { hostname: "127.0.0.1", ...addr };
-
- const args = { ...remote, rid: this.rid };
+ const args = { hostname: "127.0.0.1", ...addr, rid: this.rid };
return opSend(args, p);
}