diff --git a/lib/common.js b/lib/common.js index 7ffc4d7..130d0a6 100755 --- a/lib/common.js +++ b/lib/common.js @@ -179,10 +179,9 @@ exports.checkDirectorySync = (directory) => { fs.statSync(directory); }catch(e){ try{ - fs.mkdirSync(directory); - } - catch(err){ - mkdirp.sync(directory);//error : directory & sub directories to be newly created + fs.mkdirSync(directory); + }catch(err){ + mkdirp.sync(directory);// error : directory & sub directories to be newly created } } };