Skip to content

Commit cb97270

Browse files
committed
fix npm xo lint I missed
1 parent ccbc165 commit cb97270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,11 @@ TEST: addTests('isRepositoryActions', [
814814

815815
const isStars = (url: URL | HTMLAnchorElement | Location = location): boolean => {
816816
const patharr = getCleanPathname(url).split('/');
817-
const [stars, , subpath, ] = patharr; // only get the elements we're only to check from destructuring to avoid compile error
817+
const [stars, , subpath] = patharr; // Only get the elements we're only to check from destructuring to avoid compile error
818818
return Boolean(stars === 'stars'
819819
&& ([1, 2, 4].includes(patharr.length)
820820
|| (subpath === 'lists' && patharr.length !== 3)
821-
|| (subpath && ['repositories', 'topics'].includes(subpath) && patharr.length === 3))
821+
|| (subpath && ['repositories', 'topics'].includes(subpath) && patharr.length === 3)),
822822
);
823823
};
824824

0 commit comments

Comments
 (0)