Use a truthy check
This commit is contained in:
parent
846c2af02b
commit
27047da08b
|
@ -34,7 +34,7 @@ export function logErrorSentry(
|
||||||
}
|
}
|
||||||
|
|
||||||
const logError1 = (message: string, e?: unknown) => {
|
const logError1 = (message: string, e?: unknown) => {
|
||||||
if (e === undefined || e === null) {
|
if (!e) {
|
||||||
log.error(message);
|
log.error(message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue