Skip to content

Commit 9d23801

Browse files
committed
lint
1 parent 50de384 commit 9d23801

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

index.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,22 @@ TEST: addTests('isQuickPR', [
289289
export const isDraftPR = (): boolean => exists('#partial-discussion-header .octicon-git-pull-request-draft');
290290
export const isOpenPR = (): boolean => exists('#partial-discussion-header :is(.octicon-git-pull-request, .octicon-git-pull-request-draft)');
291291
export const isMergedPR = (): boolean => {
292-
if (exists('#partial-discussion-header :is(.octicon-git-merge)'))
292+
if (exists('#partial-discussion-header :is(.octicon-git-merge)')) {
293293
return true;
294-
const status = $('[class^="StateLabel"]')!.textContent
295-
return status === 'Merged'
296-
}
294+
}
295+
296+
const status = $('[class^="StateLabel"]')!.textContent;
297+
return status === 'Merged';
298+
};
299+
297300
export const isClosedPR = (): boolean => {
298-
if (exists('#partial-discussion-header :is(.octicon-git-pull-request-closed, .octicon-git-merge)'))
301+
if (exists('#partial-discussion-header :is(.octicon-git-pull-request-closed, .octicon-git-merge)')) {
299302
return true;
300-
const status = $('[class^="StateLabel"]')!.textContent
301-
return status === 'Closed' || status === 'Merged'
302-
}
303+
}
304+
305+
const status = $('[class^="StateLabel"]')!.textContent;
306+
return status === 'Closed' || status === 'Merged';
307+
};
303308

304309
export const isClosedIssue = (): boolean => exists('#partial-discussion-header :is(.octicon-issue-closed, .octicon-skip)');
305310

@@ -751,7 +756,6 @@ TEST: addTests('isRepositoryActions', [
751756

752757
export const isUserTheOrganizationOwner = (): boolean => isOrganizationProfile() && exists('[aria-label="Organization"] [data-tab-item="org-header-settings-tab"]');
753758

754-
755759
export const canUserAdminRepo = (): boolean => isRepo() && exists('.reponav-item[href$="/settings"], [data-tab-item$="settings-tab"]');
756760

757761
/** @deprecated Use `canUserAdminRepo` */

0 commit comments

Comments
 (0)