Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed May 20, 2024
1 parent 787028f commit 007eb96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions package-forks/gulp-babel/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ function initSourceMap() {
transform(file, enc, callback) {
sourcemap.add(file, (sourcemapErr, updatedFile) => {
if (sourcemapErr) {
return callback(sourcemapErr);
callback(sourcemapErr);
return;
}

callback(null, updatedFile);
});
}
})
});
}

function writeSourceMap() {
Expand All @@ -57,7 +58,8 @@ function writeSourceMap() {

sourcemap.write(file, (sourcemapErr, updatedFile, sourcemapFile) => {
if (sourcemapErr) {
return callback(sourcemapErr);
callback(sourcemapErr);
return;
}

self.push(updatedFile);
Expand All @@ -68,7 +70,7 @@ function writeSourceMap() {
callback();
});
}
})
});
}

test("should generate source maps", t => {
Expand Down
2 changes: 1 addition & 1 deletion package-forks/gulp-concat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module.exports = function(file, opt = {}) {
objectMode: true,
transform: bufferContents,
flush: endStream
})
});

return transform;
};

0 comments on commit 007eb96

Please sign in to comment.