From e1994986034eac341455b834f6725f42cf13e4cd Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 1 Feb 2017 10:52:51 -0500 Subject: [PATCH] Prevent false positives! --- working.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/working.js b/working.js index 6c5a7f3..652e04a 100644 --- a/working.js +++ b/working.js @@ -16,7 +16,7 @@ s3 s3.putObject( { Bucket: BUCKET, Key: file.path, Body: fs.createReadStream(file.path) } ).promise() - .then(() => console.log("success")) + .then(() => { console.log("success"); fs.unlinkSync("hello.txt") }) .catch(err => console.log(err)) }) })