From 500261b4dc62024ead038bbda6a0d3325e657573 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 30 Mar 2013 22:03:34 +0000 Subject: Call fs.unlink using q --- lib/web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); }); } -- cgit v1.2.3