Permalink
Browse files

add no-op callbacks to ignore unlink errors

  • Loading branch information...
1 parent 45ac0ec commit 4f828c6678451570aadb2700e4f6697502e322b5 @kcivey kcivey committed Nov 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 server.js
View
@@ -88,10 +88,10 @@ app.get(/^(\/.+)\.([^.\/]+)(\.jpe?g)$/i, function (req, res) {
}
function cleanup() {
console.log('deleting', rawFile);
- fs.unlink(rawFile);
+ fs.unlink(rawFile, function () {});
if (convertedFile) {
console.log('deleting', convertedFile);
- fs.unlink(convertedFile);
+ fs.unlink(convertedFile, function () {});
}
}
});

0 comments on commit 4f828c6

Please sign in to comment.