feat: changed to module.exports

This commit is contained in:
Randell Dawson
2018-11-11 23:52:00 -08:00
committed by mrugesh mohapatra
parent 76c23be416
commit 2ae521c995
14 changed files with 36 additions and 31 deletions

View File

@@ -84,7 +84,7 @@ const guideFolderChecks = (prFiles, user) => {
return newErrors ? errorsFound.concat(newErrors) : errorsFound;
}, []);
return createErrorMsg(prErrors, user);
return prErrors.length ? createErrorMsg(prErrors, user) : null;
};
exports.guideFolderChecks = guideFolderChecks;
module.exports = { guideFolderChecks };