Skip to content

Commit

Permalink
Fixed ESLint no-else-return error
Browse files Browse the repository at this point in the history
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
  • Loading branch information
BlueCocoa committed May 8, 2020
1 parent 8cfe162 commit 52185a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/appenders/file.js
Expand Up @@ -58,7 +58,7 @@ function fileAppender(file, layout, logSize, numBackups, options, timezoneOffset
const regex = /\x1b[[0-9;]*m/g;
loggingEvent.data = loggingEvent.data.map(d => {
if (typeof d === 'string') return d.replace(regex, '')
else return d
return d
})
}
if (!writer.write(layout(loggingEvent, timezoneOffset) + eol, "utf8")) {
Expand Down

0 comments on commit 52185a4

Please sign in to comment.