Skip to content

Commit 28c6d6c

Browse files
committed
Unrelated: move some comments to JSDoct
1 parent b47cf04 commit 28c6d6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,8 @@ export const hasRichTextEditor = (url: URL | HTMLAnchorElement | Location = loca
616616
|| isDiscussion(url);
617617

618618
addTests('hasCode', combinedTestOnly);
619-
export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boolean => // Static code, not the editor
619+
/** Static code, not the code editor */
620+
export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boolean =>
620621
hasComments(url)
621622
|| isRepoTree(url) // Readme files
622623
|| isRepoSearch(url)
@@ -628,7 +629,8 @@ export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boo
628629
|| isBlame(url);
629630

630631
addTests('hasFiles', combinedTestOnly);
631-
export const hasFiles = (url: URL | HTMLAnchorElement | Location = location): boolean => // Has a list of files
632+
/** Has a list of files */
633+
export const hasFiles = (url: URL | HTMLAnchorElement | Location = location): boolean =>
632634
isCommit(url)
633635
|| isCompare(url)
634636
|| isPRFiles(url);

0 commit comments

Comments
 (0)