Lint fixes

This commit is contained in:
Knut Sveidqvist
2021-08-05 01:13:13 +02:00
parent f77ae2b045
commit 88e195408c
2 changed files with 4 additions and 4 deletions

View File

@@ -1144,10 +1144,10 @@ config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
const keyify = (obj, prefix = '') =>
Object.keys(obj).reduce((res, el) => {
if( Array.isArray(obj[el]) ) {
if (Array.isArray(obj[el])) {
return res;
} else if( typeof obj[el] === 'object' && obj[el] !== null ) {
return [...res, prefix + el, ...keyify(obj[el],'')];
} else if (typeof obj[el] === 'object' && obj[el] !== null) {
return [...res, prefix + el, ...keyify(obj[el], '')];
}
return [...res, prefix + el];
}, []);