Skip to content

Commit dcea46e

Browse files
add comments
1 parent 2a81f10 commit dcea46e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,12 @@ TEST: addTests('isRepo', [
397397
export const hasRepoHeader = (url: URL | HTMLAnchorElement | Location = location): boolean => isRepo(url) && !isRepoSearch(url);
398398
TEST: addTests('hasRepoHeader', combinedTestOnly);
399399

400-
export const isEmptyRepoRoot = (): boolean => isRepoHome() && exists('.blankslate-icon, #empty-setup-clone-url');
400+
export const isEmptyRepoRoot = (): boolean => isRepoHome() && exists([
401+
// If you don't have write access
402+
'.blankslate-icon',
403+
// If you have write access
404+
'#empty-setup-clone-url',
405+
].join(','));
401406

402407
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
403408

0 commit comments

Comments
 (0)