more codacy cleanup

This commit is contained in:
Henry Szeto
2018-07-13 11:10:45 -07:00
parent 3e586637e9
commit 915931ebf6

View File

@ -5,11 +5,11 @@ const dig = (obj, target) =>
.values(obj)
.reduce((acc, val) => {
if (acc !== undefined) {
return acc
};
return acc;
}
if (typeof val === "object") {
return dig(val, target)
};
return dig(val, target);
}
}, undefined);
module.exports = dig;