Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Jun 5, 2024
1 parent eca0b43 commit c7058bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class JSONValidation {
const text = view.state.doc.toString();

// ignore blank json strings
if (!text || !text.length) return [];
if (!text?.length) return [];

const json = this.parser(view.state);

Expand Down

0 comments on commit c7058bc

Please sign in to comment.