From 88e195408c7b886878a074dc7b94a0df3e0528f1 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 5 Aug 2021 01:13:13 +0200 Subject: [PATCH] Lint fixes --- src/defaultConfig.js | 6 +++--- src/utils.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/defaultConfig.js b/src/defaultConfig.js index 42bdfcd4e..6d2f29474 100644 --- a/src/defaultConfig.js +++ b/src/defaultConfig.js @@ -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]; }, []); diff --git a/src/utils.js b/src/utils.js index 58a46f488..282aeb808 100644 --- a/src/utils.js +++ b/src/utils.js @@ -88,7 +88,7 @@ export const detectInit = function (text, cnf) { log.debug('sanitize deleting prototype option', args[key]); delete args[argKey][key]; } - if(configKeys.indexOf(key)<0) { + if (configKeys.indexOf(key) < 0) { log.debug('sanitize deleting option', args[argKey][key]); delete args[argKey][key]; }