Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Jul 30, 2023
1 parent 55f5119 commit 3b5dbfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/wiki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ enum parse_state { body, field, footer, before_inline_field, done }
* One-time use class for parsing articles.
*/
class ArticleParser {
private readonly _article_aliases = new Set<string>();
private readonly aliases = new Set<string>();

private title: string;
private body?: string;
Expand Down Expand Up @@ -146,8 +146,8 @@ class ArticleParser {
.split(",")
.map(alias => alias.trim());
for(const alias of aliases) {
assert(!this._article_aliases.has(alias));
this._article_aliases.add(alias);
assert(!this.aliases.has(alias));
this.aliases.add(alias);
}
}
}
Expand Down Expand Up @@ -248,7 +248,7 @@ class ArticleParser {

get article_aliases(): Set<string> {
assert(this.is_done, "Attempting to access aliases of a parser without success");
return this._article_aliases;
return this.aliases;
}

}
Expand Down

0 comments on commit 3b5dbfc

Please sign in to comment.