Skip to content

Commit

Permalink
Merge pull request #1165 from log4js-node/fixed-eslint
Browse files Browse the repository at this point in the history
fixed eslint
  • Loading branch information
lamweili authored Jan 23, 2022
2 parents 49c9173 + bf2b326 commit adcd0ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/appenders/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ const setup = (config) => {
appendersLoading.clear();
const usedAppenders = [];
Object.values(config.categories).forEach(category => {
usedAppenders.push(...category.appenders)
usedAppenders.push(...category.appenders);
});
Object.keys(config.appenders).forEach((name) => {
// dodgy hard-coding of special case for tcp-server and multiprocess which may not have
// any categories associated with it, but needs to be started up anyway
if (usedAppenders.includes(name) || config.appenders[name].type === 'tcp-server' || config.appenders[name].type === 'multiprocess') {
if (usedAppenders.includes(name) || config.appenders[name].type === 'tcp-server'
|| config.appenders[name].type === 'multiprocess') {
getAppender(name, config);
}
});
Expand Down

0 comments on commit adcd0ff

Please sign in to comment.