fix issues reported by Codacy

This commit is contained in:
Henry Szeto
2018-07-13 11:02:11 -07:00
parent 25c5399bec
commit 3e586637e9
3 changed files with 18 additions and 2091 deletions

View File

@ -4,8 +4,12 @@ const dig = (obj, target) =>
: Object
.values(obj)
.reduce((acc, val) => {
if (acc !== undefined) return acc;
if (typeof val === 'object') return dig(val, target);
if (acc !== undefined) {
return acc
};
if (typeof val === "object") {
return dig(val, target)
};
}, undefined);
module.exports = dig;
module.exports = dig;