From 3b9b87ae9e0255f2c073141213f772006c1204d9 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sat, 20 Jun 2020 00:51:30 +0800 Subject: [PATCH 1/3] src: improve indention for upd_wrap.cc --- src/udp_wrap.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc index 24df0acba46041..26bafebcb22c14 100644 --- a/src/udp_wrap.cc +++ b/src/udp_wrap.cc @@ -230,12 +230,12 @@ int sockaddr_for_family(int address_family, const unsigned short port, struct sockaddr_storage* addr) { switch (address_family) { - case AF_INET: - return uv_ip4_addr(address, port, reinterpret_cast(addr)); - case AF_INET6: - return uv_ip6_addr(address, port, reinterpret_cast(addr)); - default: - CHECK(0 && "unexpected address family"); + case AF_INET: + return uv_ip4_addr(address, port, reinterpret_cast(addr)); + case AF_INET6: + return uv_ip6_addr(address, port, reinterpret_cast(addr)); + default: + CHECK(0 && "unexpected address family"); } } From 02460e6f0e75394c125e3aa54406aa016ff6dd40 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sat, 20 Jun 2020 00:57:27 +0800 Subject: [PATCH 2/3] test: fix typo in common/index.js --- test/common/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/index.js b/test/common/index.js index 9de81b426e6c7e..33754760917acd 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -27,7 +27,7 @@ const process = global.process; // Some tests tamper with the process global. const assert = require('assert'); const { exec, execSync, spawnSync } = require('child_process'); const fs = require('fs'); -// Do not require 'os' until needed so that test-os-checked-fucnction can +// Do not require 'os' until needed so that test-os-checked-function can // monkey patch it. If 'os' is required here, that test will fail. const path = require('path'); const util = require('util'); From dc6f2135f178deba29d5406dc2f55d860a8ae393 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sat, 20 Jun 2020 00:58:23 +0800 Subject: [PATCH 3/3] test: fix typo in test-quic-client-empty-preferred-address.js --- test/parallel/test-quic-client-empty-preferred-address.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-quic-client-empty-preferred-address.js b/test/parallel/test-quic-client-empty-preferred-address.js index fa5a0b65503af4..a65b9f9032fc98 100644 --- a/test/parallel/test-quic-client-empty-preferred-address.js +++ b/test/parallel/test-quic-client-empty-preferred-address.js @@ -3,7 +3,7 @@ // This test ensures that when we don't define `preferredAddress` // on the server while the `preferredAddressPolicy` on the client -// is `accpet`, it works as expected. +// is `accept`, it works as expected. const common = require('../common'); if (!common.hasQuic)