From 90ac099782b1b1ebd01e0e3beb929c10e3787a61 Mon Sep 17 00:00:00 2001 From: taoqf Date: Tue, 10 Mar 2020 15:59:57 +0800 Subject: [PATCH] fix: lint --- src/matcher.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/matcher.ts b/src/matcher.ts index 90b8576..3efe891 100644 --- a/src/matcher.ts +++ b/src/matcher.ts @@ -62,12 +62,11 @@ const functionCache = { 'use strict'; return true; }, - f55(el: HTMLElement, tagName: string, classes: string[], attr_key: string, value: string) { + f55(el: HTMLElement, tagName: string, classes: string[], attr_key: string) { 'use strict'; tagName = tagName || ''; classes = classes || []; attr_key = attr_key || ''; - value = value || ''; const attrs = el.attributes; return attrs.hasOwnProperty(attr_key); },