Skip to content

Commit

Permalink
Add check for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Loder committed Oct 31, 2023
1 parent 9289db7 commit eeb23ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syllable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class Syllable extends Node<Syllable> {
return this.#cachedStructureWithGemination;
}

if (this.#cachedStructure) {
if (!withGemination && this.#cachedStructure) {
return this.#cachedStructure;
}

Expand Down

0 comments on commit eeb23ff

Please sign in to comment.