Explorar el Código

Use a truthy check

Manav Rathi hace 1 año
padre
commit
27047da08b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      desktop/src/main/log.ts

+ 1 - 1
desktop/src/main/log.ts

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