8000 Fixed ESLint no-else-return error · xaviernoder/log4js-node@52185a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 52185a4

Browse files
committed
Fixed ESLint no-else-return error
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
1 parent 8cfe162 commit 52185a4

File tree

1 file changed

8000
+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/appenders/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function fileAppender(file, layout, logSize, numBackups, options, timezoneOffset
5858
const regex = /\x1b[[0-9;]*m/g;
5959
loggingEvent.data = loggingEvent.data.map(d => {
6060
if (typeof d === 'string') return d.replace(regex, '')
61-
else return d
61+
return d
6262
})
6363
}
6464
if (!writer.write(layout(loggingEvent, timezoneOffset) + eol, "utf8")) {

0 commit comments

Comments
 (0)
0