Simplify the return expression as this is a boolean

This commit is contained in:
Peter Indiola 2019-11-21 10:06:07 +08:00
parent 68522b691a
commit 2c1944e911

View File

@ -28,10 +28,8 @@ const cacheFileValid = (serverlessConfigFile, validationHash) => {
.createHash('sha256')
.update(JSON.stringify(serverlessConfigFile))
.digest('hex');
if (validationHash === serverlessConfigFileHash) {
return true;
}
return false;
return validationHash === serverlessConfigFileHash;
};
const autocomplete = () => {