Explorar el Código

Correction erreur

Loquicom hace 5 años
padre
commit
6027b95f01
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/file.js

+ 3 - 1
src/file.js

@@ -27,9 +27,11 @@ module.exports.makedir = function (path, isFilePath = false, verbose = false) {
         } catch (err) {
             if (verbose) {
                 console.error(err);
-                return false;
             }
+            return false;
         }
+    } else {
+        return true;
     }
 };