From 7ef8e6f80d0a228841576a380dc312c8ba5c94b6 Mon Sep 17 00:00:00 2001 From: Chris Moesel Date: Tue, 21 Apr 2020 13:46:19 -0400 Subject: [PATCH] Fix asynch bug when caching is enabled --- lib/download-vsac.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/download-vsac.js b/lib/download-vsac.js index 6860a66..dd8aef2 100644 --- a/lib/download-vsac.js +++ b/lib/download-vsac.js @@ -109,8 +109,9 @@ function writeFile(file, data, caching=true) { resolve(file); } }); + } else { + resolve(); } - resolve(); }); }