Skip to content

Commit 452b6aa

Browse files
gengjiawenBethGriggs
authored andcommittedApr 16, 2019
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>
1 parent 8d22048 commit 452b6aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/pipe_wrap.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ void PipeWrap::Fchmod(const v8::FunctionCallbackInfo<v8::Value>& args) {
184184
ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
185185
CHECK(args[0]->IsInt32());
186186
int mode = args[0].As<Int32>()->Value();
187-
int err = uv_pipe_chmod(reinterpret_cast<uv_pipe_t*>(&wrap->handle_),
188-
mode);
187+
int err = uv_pipe_chmod(&wrap->handle_, mode);
189188
args.GetReturnValue().Set(err);
190189
}
191190

0 commit comments

Comments
 (0)