Skip to content

Commit 77ff337

Browse files
committed
Actually fix lint issues.
1 parent 272ca33 commit 77ff337

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/logger/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ export function write(entry: LogEntry) {
9494
] = `projects/${process.env.GCLOUD_PROJECT}/traces/${ctx.traceId}`;
9595
}
9696

97-
UNPATCHED_CONSOLE[CONSOLE_SEVERITY[entry.severity]](
98-
JSON.stringify(removeCircular(entry))
99-
);
97+
UNPATCHED_CONSOLE[CONSOLE_SEVERITY[entry.severity]](JSON.stringify(removeCircular(entry)));
10098
}
10199

102100
/**
@@ -153,11 +151,7 @@ export function error(...args: any[]) {
153151
function entryFromArgs(severity: LogSeverity, args: any[]): LogEntry {
154152
let entry = {};
155153
const lastArg = args[args.length - 1];
156-
if (
157-
lastArg &&
158-
typeof lastArg === "object" &&
159-
lastArg.constructor === Object
160-
) {
154+
if (lastArg && typeof lastArg === "object" && lastArg.constructor === Object) {
161155
entry = args.pop();
162156
}
163157

0 commit comments

Comments
 (0)