Skip to content

Commit 67e5824

Browse files
Copilotfregante
andauthored
Run xo --fix to address lint issues
Agent-Logs-Url: https://github.com/refined-github/github-url-detection/sessions/f3ee306a-f64c-4b9c-853a-b58305284358 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
1 parent 0d01d8e commit 67e5824

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function exists(selector: string): boolean {
3838
* ```
3939
*/
4040
async function waitFor(detection: () => boolean): Promise<boolean> {
41-
// eslint-disable-next-line no-await-in-loop -- We need to wait on each frame
4241
while (!detection() && document.readyState !== 'complete') {
4342
// eslint-disable-next-line no-await-in-loop
4443
await new Promise(resolve => {
@@ -492,10 +491,10 @@ TEST: addTests('isRepo', [
492491
'isSingleReleaseOrTag',
493492
'isTags',
494493
// Repo URLs from detections that also cover non-repo pages
495-
'https://github.com/sindresorhus/refined-github/projects/3', // from isProject
496-
'https://github.com/tophf/mpiv/discussions/50', // from isDiscussion
497-
'https://github.com/withastro/roadmap/discussions/new?category=proposal', // from isNewDiscussion
498-
'https://github.com/tophf/mpiv/discussions', // from isDiscussionList
494+
'https://github.com/sindresorhus/refined-github/projects/3', // From isProject
495+
'https://github.com/tophf/mpiv/discussions/50', // From isDiscussion
496+
'https://github.com/withastro/roadmap/discussions/new?category=proposal', // From isNewDiscussion
497+
'https://github.com/tophf/mpiv/discussions', // From isDiscussionList
499498
// These URLs are repos but don't match any specific detection
500499
'https://github.com/sindresorhus/refined-github/milestones/new', // Gotcha for isRepoTaxonomyIssueOrPRList
501500
'https://github.com/sindresorhus/refined-github/milestones/1/edit', // Gotcha for isRepoTaxonomyIssueOrPRList

0 commit comments

Comments
 (0)