aboutsummaryrefslogtreecommitdiff
path: root/lib/web.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-03-30 22:03:34 +0000
committerMichael Williamson <mike@zwobble.org>2013-03-30 22:03:34 +0000
commit500261b4dc62024ead038bbda6a0d3325e657573 (patch)
treee55f131b570f04a584b785ed0a0b04f1bbe04f73 /lib/web.js
parent26f7cefe6379e9b76f5bb1963433a6832a55caa6 (diff)
Call fs.unlink using q
Diffstat (limited to 'lib/web.js')
-rw-r--r--lib/web.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web.js b/lib/web.js
index 1d10693..7036e53 100644
--- a/lib/web.js
+++ b/lib/web.js
@@ -61,7 +61,7 @@ function handleConvert(request, response, next) {
next();
})
.fin(function() {
- fs.unlink(documentPath);
+ return q.nfcall(fs.unlink, documentPath);
});
}