Use a truthy check

This commit is contained in:
Manav Rathi 2024-03-27 15:12:40 +05:30
parent 846c2af02b
commit 27047da08b
No known key found for this signature in database

View file

@ -34,7 +34,7 @@ export function logErrorSentry(
}
const logError1 = (message: string, e?: unknown) => {
if (e === undefined || e === null) {
if (!e) {
log.error(message);
return;
}