Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensured missing callback does not result in error.

  • Loading branch information...
commit a16baff1c1fe4f9fa030e257720fb22d6a38d2af 1 parent 2b5aa27
@pmalouin authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  graceful-fs.js
View
1  graceful-fs.js
@@ -269,6 +269,7 @@ if (!fs.lchown) {
if (process.platform === "win32") {
var rename_ = fs.rename
fs.rename = function rename (from, to, cb) {
+ cb = cb || noop
var start = Date.now()
rename_(from, to, function CB (er) {
if (er
Please sign in to comment.
Something went wrong with that request. Please try again.