Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http2,src: remove duplicate words in comments #17939

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/async_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static void PromiseHook(PromiseHookType type, Local<Promise> 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());
Expand Down
2 changes: 1 addition & 1 deletion src/inspector_agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/node_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/node_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down