Remove unnecessary type check

pull/2815/head
prashkup 6 years ago
parent 7265fd4e83
commit 49f5e68895

@ -22,10 +22,6 @@ export class Parser {
meta_tags = {}; meta_tags = {};
constructor(template: string, options: ParserOptions) { constructor(template: string, options: ParserOptions) {
if (typeof template !== 'string') {
throw new TypeError('Template must be a string');
}
this.template = template.replace(/\s+$/, ''); this.template = template.replace(/\s+$/, '');
this.filename = options.filename; this.filename = options.filename;
this.customElement = options.customElement; this.customElement = options.customElement;

Loading…
Cancel
Save