Skip to content

Commit

Permalink
Return critical css even if unlinking of the temporary file fails
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Oct 17, 2014
1 parent 4bf286b commit fa77c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -111,7 +111,7 @@ exports.generate = function (opts, cb) {

// cleanup tmp css
}).then(function (criticalCSS) {
return fs.unlinkAsync(TMPCSS).then(function () {
return fs.unlinkAsync(TMPCSS).finally(function () {
return criticalCSS;
});

Expand Down

0 comments on commit fa77c44

Please sign in to comment.