From 13390dd8a0b3c2dfa555c89d43241f3385e4aa53 Mon Sep 17 00:00:00 2001 From: Erik Kemperman Date: Sun, 13 May 2018 23:16:21 +0200 Subject: [PATCH] Fix: Call the correct callback within symlink (fixes #298) (#299) --- lib/symlink/link-file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/symlink/link-file.js b/lib/symlink/link-file.js index 7db95d90..e1caf977 100644 --- a/lib/symlink/link-file.js +++ b/lib/symlink/link-file.js @@ -27,7 +27,7 @@ function linkStream(optResolver) { function onReflectTarget(statErr) { if (statErr && statErr.code !== 'ENOENT') { - return onWritten(statErr); + return callback(statErr); } // If target doesn't exist, the vinyl will still carry the target stats. // Let's use those to determine which kind of dangling link to create.