Skip to content

Commit ad4dc0a

Browse files
committed
syntax consistency
1 parent 567af7b commit ad4dc0a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/createLogger.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const timer = typeof performance !== `undefined` ? performance : Date;
1010
* @property {object} options - options for logger
1111
* @property {string} level - console[level]
1212
* @property {boolean} collapsed - is group collapsed?
13-
* @property {bool} predicate - condition which resolves logger behavior
13+
* @property {boolean} predicate - condition which resolves logger behavior
1414
*/
1515

1616
function createLogger(options = {}) {
@@ -54,7 +54,7 @@ function createLogger(options = {}) {
5454
} else {
5555
try {
5656
console.group(message);
57-
} catch(e) {
57+
} catch (e) {
5858
console.log(message);
5959
}
6060
}
@@ -71,7 +71,7 @@ function createLogger(options = {}) {
7171

7272
try {
7373
console.groupEnd();
74-
} catch(e) {
74+
} catch (e) {
7575
console.log('—— log end ——');
7676
}
7777

src/logger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function logger({ getState }) {
1717

1818
try {
1919
console.group(message);
20-
} catch(e) {
20+
} catch (e) {
2121
console.log(message);
2222
}
2323

@@ -27,7 +27,7 @@ function logger({ getState }) {
2727

2828
try {
2929
console.groupEnd();
30-
} catch(e) {
30+
} catch (e) {
3131
console.log('—— log end ——');
3232
}
3333

0 commit comments

Comments
 (0)