fix: Remove try/catch statements without error argument (#6370)

This commit is contained in:
Tom Moor
2024-01-10 08:02:44 -08:00
committed by GitHub
parent 870c623601
commit 22c52f84c5
5 changed files with 8 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ export const ProsemirrorSchema = z.custom<TProsemirrorData>((val) => {
const node = Node.fromJSON(schema, val);
node.check();
return true;
} catch {
} catch (_e) {
return false;
}
}, "not valid data");