diff --git a/index.js b/index.js index 53fe8ef..7f860c2 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ async function isDirectory(path) { try { let stat = await lstat(path); return stat.isDirectory(); - } catch (e) { + } catch { return false; } }