diff --git a/dist/tags/base.js b/dist/tags/base.js index 62b6f44..c06eba4 100644 --- a/dist/tags/base.js +++ b/dist/tags/base.js @@ -144,9 +144,7 @@ class TagCollection { } } getByName(name) { - return this.tags.filter(t => { - t.constructor.name == name; - })[0] || undefined; + return this.tags.filter(t => t.constructor.name == name)[0] || undefined; } getByElementName(element) { const el = element.toUpperCase(); diff --git a/src/ts/tags/base.ts b/src/ts/tags/base.ts index 7c3657a..a35af6a 100644 --- a/src/ts/tags/base.ts +++ b/src/ts/tags/base.ts @@ -158,9 +158,7 @@ export class TagCollection implements TagCollectionType { } getByName(name: string): TagType | undefined { - return this.tags.filter(t => { - t.constructor.name == name - })[0] || undefined; + return this.tags.filter(t => { return t.constructor.name == name })[0] || undefined; } getByElementName(element: string): TagType | undefined {