Skip to content

Commit 1aaedf5

Browse files
authored
Small meta changes (#2626)
1 parent ea63d2b commit 1aaedf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export const _isQuickPR = [
207207
];
208208

209209
export const isReleasesOrTags = (): boolean => {
210-
const parts = (getRepoPath() || '').split('/');
210+
const parts = (getRepoPath() ?? '').split('/');
211211
return /^(releases|tags)$/.test(parts[0]) && parts[1] !== 'new';
212212
};
213213

@@ -255,7 +255,7 @@ export const _isRepoDiscussionList = [
255255
'https://github.com/sindresorhus/refined-github/issues'
256256
];
257257

258-
export const isRepoPRList = (): boolean => (getRepoPath() || '').startsWith('pulls');
258+
export const isRepoPRList = (): boolean => (getRepoPath() ?? '').startsWith('pulls');
259259
export const _isRepoPRList = [
260260
'https://github.com/sindresorhus/refined-github/pulls',
261261
'https://github.com/sindresorhus/refined-github/pulls/',
@@ -265,7 +265,7 @@ export const _isRepoPRList = [
265265
];
266266

267267
export const isRepoIssueList = (): boolean => {
268-
const parts = (getRepoPath() || '').split('/');
268+
const parts = (getRepoPath() ?? '').split('/');
269269
return parts[0] === 'issues' && parts[1] !== 'new' && !/\d/.test(parts[1]); // `issues/fregante` is a list but `issues/1` isn't
270270
};
271271

0 commit comments

Comments
 (0)