★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/452b6aad5aNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
src: remove redundant cast in PipeWrap::Fchmod
PR-URL: #26242
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
gengjiawen authored and BethGriggs committed Apr 16, 2019
1 parent 8d22048 commit 452b6aad5a38cba277acd63d0ae87d82566b45b5
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/pipe_wrap.cc
@@ -184,8 +184,7 @@ void PipeWrap::Fchmod(const v8::FunctionCallbackInfo<v8::Value>& args) {
ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
CHECK(args[0]->IsInt32());
int mode = args[0].As<Int32>()->Value();
int err = uv_pipe_chmod(reinterpret_cast<uv_pipe_t*>(&wrap->handle_),
mode);
int err = uv_pipe_chmod(&wrap->handle_, mode);
args.GetReturnValue().Set(err);
}

0 comments on commit 452b6aa

Please sign in to comment.