From 66a605254c0100f7653f7935fa381ee247207b59 Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Sun, 24 Mar 2019 17:59:46 -0700 Subject: [PATCH] Fix mistake where _createFolder wouldn't throw an error --- src/TileSource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TileSource.js b/src/TileSource.js index 9430489..1b5000b 100644 --- a/src/TileSource.js +++ b/src/TileSource.js @@ -168,7 +168,7 @@ class TileSource { fs.mkdirSync(path); return true; } catch (error) { - return error.code === 'EEXIST'; + if (error.code === 'EEXIST') return true; throw error; } }