We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ba4be3 commit 71f1293Copy full SHA for 71f1293
lib/src/read-contents/index.js
@@ -39,7 +39,10 @@ function readContents(optResolver) {
39
// This is invoked by the various readXxx modules when they've finished
40
// reading the contents.
41
function onRead(readErr) {
42
- callback(readErr, file);
+ if (readErr) {
43
+ return callback(readErr);
44
+ }
45
+ return callback(null, file);
46
}
47
48
0 commit comments