Skip to content

Commit

Permalink
Fix: Call the correct callback within symlink (fixes #298) (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman authored and phated committed May 13, 2018
1 parent 0d6e6be commit 13390dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/symlink/link-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 13390dd

Please sign in to comment.