diff --git a/src/node_file.cc b/src/node_file.cc index cac71dbaf07..f4cda23580b 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -230,9 +230,6 @@ static Handle Rename(const Arguments& args) { String::Utf8Value new_path(args[1]->ToString()); return scope.Close(EIOPromise::Rename(*path, *new_path)); - Promise *promise = EIOPromise::Create(); - - return scope.Close(promise->Handle()); } static Handle Unlink(const Arguments& args) {