Skip to content

Commit 1c60c33

Browse files
committed
logger-util: Avoid no-fallthrough warnings.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent c9249b1 commit 1c60c33

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/renderer/js/utils/logger-util.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,21 @@ export default class Logger {
8989
nodeConsole, timestamp, level, logInDevMode
9090
} = this;
9191

92-
/* eslint-disable no-fallthrough */
9392
switch (true) {
9493
case typeof timestamp === 'function':
9594
args.unshift(timestamp() + ' |\t');
95+
// Fall through
9696

9797
case (level):
9898
args.unshift(type.toUpperCase() + ' |');
99+
// Fall through
99100

100101
case isDev || logInDevMode:
101102
nodeConsole[type](...args);
103+
break;
102104

103-
default: break;
105+
default:
104106
}
105-
/* eslint-enable no-fallthrough */
106107

107108
console[type](...args);
108109
}

0 commit comments

Comments
 (0)