Skip to content

Commit 9c766dc

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 1d027ed commit 9c766dc

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

packages/firestore/src/util/log.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,16 @@ export function setLogLevel(newLevel: LogLevel): void {
5454
logClient.logLevel = FirebaseLogLevel.SILENT;
5555
break;
5656
default:
57-
logClient.error(`Firestore (${SDK_VERSION}): Invalid value passed to \`setLogLevel\``);
57+
logClient.error(
58+
`Firestore (${SDK_VERSION}): Invalid value passed to \`setLogLevel\``
59+
);
5860
}
5961
}
6062

6163
export function debug(tag: string, msg: string, ...obj: AnyJs[]): void {
6264
if (logClient.logLevel <= FirebaseLogLevel.DEBUG) {
6365
const args = obj.map(argToString);
64-
logClient.log(
65-
`Firestore (${SDK_VERSION}) [${tag}]: ${msg}`,
66-
...args
67-
);
66+
logClient.log(`Firestore (${SDK_VERSION}) [${tag}]: ${msg}`, ...args);
6867
}
6968
}
7069

packages/logger/src/logger.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ const defaultLogHandler: LogHandler = (instance, logType, ...args) => {
9494
console.error(`[${now}] ${instance.name}:`, ...args);
9595
break;
9696
default:
97-
throw new Error(`Attempted to log a message with an invalid logType (value: ${logType})`);
97+
throw new Error(
98+
`Attempted to log a message with an invalid logType (value: ${logType})`
99+
);
98100
}
99101
};
100102

packages/logger/test/logger.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ describe('@firebase/logger', () => {
5656
*/
5757
channel = channel === 'debug' ? 'log' : channel;
5858

59-
it(`Should ${shouldLog ? '' : 'not'} call \`console.${channel}\` if \`.${
60-
channel
61-
}\` is called`, () => {
59+
it(`Should ${
60+
shouldLog ? '' : 'not'
61+
} call \`console.${channel}\` if \`.${channel}\` is called`, () => {
6262
client[channel](message);
6363
expect(
6464
spies[`${channel}Spy`] && spies[`${channel}Spy`].called,

0 commit comments

Comments
 (0)