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