From 269c7fa834f8b6df3dbb35de9d4de6f8e4015f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Tue, 2 Jan 2018 00:06:01 +0100 Subject: [PATCH 1/2] src: remove duplicate words in comments --- src/async_wrap.cc | 2 +- src/inspector_agent.h | 2 +- src/node_api.h | 2 +- src/node_main.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/async_wrap.cc b/src/async_wrap.cc index 6276dac6ffab52..f770348b9c9183 100644 --- a/src/async_wrap.cc +++ b/src/async_wrap.cc @@ -329,7 +329,7 @@ static void PromiseHook(PromiseHookType type, Local promise, if (env->execution_async_id() == wrap->get_async_id()) { // This condition might not be true if async_hooks was enabled during // the promise callback execution. - // Popping it off the stack can be skipped in that case, because is is + // Popping it off the stack can be skipped in that case, because it is // known that it would correspond to exactly one call with // PromiseHookType::kBefore that was not witnessed by the PromiseHook. env->async_hooks()->pop_async_id(wrap->get_async_id()); diff --git a/src/inspector_agent.h b/src/inspector_agent.h index 1d632ea8f88ac5..0555f5e18c2129 100644 --- a/src/inspector_agent.h +++ b/src/inspector_agent.h @@ -83,7 +83,7 @@ class Agent { return io_.get(); } - // Can only be called from the the main thread. + // Can only be called from the main thread. bool StartIoThread(bool wait_for_connect); // Calls StartIoThread() from off the main thread. diff --git a/src/node_api.h b/src/node_api.h index ee0ad3518e13aa..c7527051694537 100644 --- a/src/node_api.h +++ b/src/node_api.h @@ -177,7 +177,7 @@ NAPI_EXTERN napi_status napi_create_range_error(napi_env env, napi_value msg, napi_value* result); -// Methods to get the the native napi_value from Primitive type +// Methods to get the native napi_value from Primitive type NAPI_EXTERN napi_status napi_typeof(napi_env env, napi_value value, napi_valuetype* result); diff --git a/src/node_main.cc b/src/node_main.cc index 2a511b92996e86..7ab612d53e500a 100644 --- a/src/node_main.cc +++ b/src/node_main.cc @@ -34,7 +34,7 @@ int wmain(int argc, wchar_t *wargv[]) { exit(ERROR_EXE_MACHINE_TYPE_MISMATCH); } - // Convert argv to to UTF8 + // Convert argv to UTF8 char** argv = new char*[argc + 1]; for (int i = 0; i < argc; i++) { // Compute the size of the required buffer From e617fa6d8342e530761194d2019ec731476804b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 1 Jan 2018 23:57:53 +0100 Subject: [PATCH 2/2] http2: remove duplicate words in comments --- lib/internal/http2/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index f0c5529a9a6961..56b772742b7f0d 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -366,7 +366,7 @@ function onFrameError(id, type, code) { // Receiving a GOAWAY frame from the connected peer is a signal that no // new streams should be created. If the code === NGHTTP2_NO_ERROR, we -// are going to send our our close, but allow existing frames to close +// are going to send our close, but allow existing frames to close // normally. If code !== NGHTTP2_NO_ERROR, we are going to send our own // close using the same code then destroy the session with an error. // The goaway event will be emitted on next tick. @@ -421,7 +421,7 @@ function requestOnConnect(headers, options) { if (session.destroyed) return; - // If the session was closed while waiting for for the connect, destroy + // If the session was closed while waiting for the connect, destroy // the stream and do not continue with the request. if (session.closed) { const err = new errors.Error('ERR_HTTP2_GOAWAY_SESSION');