From 49f5e68895724a65220809874cdfab37994602ea Mon Sep 17 00:00:00 2001 From: prashkup Date: Sat, 18 May 2019 20:46:30 +0530 Subject: [PATCH] Remove unnecessary type check --- src/parse/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/parse/index.ts b/src/parse/index.ts index a9c3950425..9a8eb97217 100644 --- a/src/parse/index.ts +++ b/src/parse/index.ts @@ -22,10 +22,6 @@ export class Parser { meta_tags = {}; constructor(template: string, options: ParserOptions) { - if (typeof template !== 'string') { - throw new TypeError('Template must be a string'); - } - this.template = template.replace(/\s+$/, ''); this.filename = options.filename; this.customElement = options.customElement;