Explorar o código

fix type guard

Shun Miyazawa %!s(int64=3) %!d(string=hai) anos
pai
achega
7fdc043f80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/app/src/interfaces/errors/v3-error.ts

+ 1 - 1
packages/app/src/interfaces/errors/v3-error.ts

@@ -4,5 +4,5 @@ export type IErrorV3 = ErrorV3
 
 // type guard
 export const isErrorV3 = (args: any): args is IErrorV3 => {
-  return args.message != null && args.code != null;
+  return args.message != null;
 };