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; } }