Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
xhayper committed Dec 2, 2023
1 parent 6e1a79c commit 48a4198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/syntacticAnalysis/deserializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class Deserializer {
}
case TokenType.TimeStep:
{
if (this.currentNoteCollection !== null) {
if (this.currentNoteCollection !== undefined) {
noteCollections.push(this.currentNoteCollection);
this.currentNoteCollection = undefined;
}
Expand All @@ -103,7 +103,7 @@ export class Deserializer {
break;

case "`":
if (this.currentNoteCollection !== null)
if (this.currentNoteCollection !== undefined)
this.currentNoteCollection.eachStyle = EachStyle.ForceBroken;
break;
}
Expand Down

0 comments on commit 48a4198

Please sign in to comment.