Skip to content

Commit 88bc975

Browse files
committed
remove cast from require-meta-docs-url
1 parent 22cf264 commit 88bc975

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/rules/require-meta-docs-url.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ const rule: Rule.RuleModule = {
102102
return;
103103
}
104104

105-
if (isExpectedUrl(staticValue && (staticValue.value as string))) {
105+
if (
106+
staticValue &&
107+
typeof staticValue.value === 'string' &&
108+
isExpectedUrl(staticValue.value)
109+
) {
106110
return;
107111
}
108112

0 commit comments

Comments
 (0)