File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ export const _isQuickPR = [
207
207
] ;
208
208
209
209
export const isReleasesOrTags = ( ) : boolean => {
210
- const parts = ( getRepoPath ( ) || '' ) . split ( '/' ) ;
210
+ const parts = ( getRepoPath ( ) ?? '' ) . split ( '/' ) ;
211
211
return / ^ ( r e l e a s e s | t a g s ) $ / . test ( parts [ 0 ] ) && parts [ 1 ] !== 'new' ;
212
212
} ;
213
213
@@ -255,7 +255,7 @@ export const _isRepoDiscussionList = [
255
255
'https://github.com/sindresorhus/refined-github/issues'
256
256
] ;
257
257
258
- export const isRepoPRList = ( ) : boolean => ( getRepoPath ( ) || '' ) . startsWith ( 'pulls' ) ;
258
+ export const isRepoPRList = ( ) : boolean => ( getRepoPath ( ) ?? '' ) . startsWith ( 'pulls' ) ;
259
259
export const _isRepoPRList = [
260
260
'https://github.com/sindresorhus/refined-github/pulls' ,
261
261
'https://github.com/sindresorhus/refined-github/pulls/' ,
@@ -265,7 +265,7 @@ export const _isRepoPRList = [
265
265
] ;
266
266
267
267
export const isRepoIssueList = ( ) : boolean => {
268
- const parts = ( getRepoPath ( ) || '' ) . split ( '/' ) ;
268
+ const parts = ( getRepoPath ( ) ?? '' ) . split ( '/' ) ;
269
269
return parts [ 0 ] === 'issues' && parts [ 1 ] !== 'new' && ! / \d / . test ( parts [ 1 ] ) ; // `issues/fregante` is a list but `issues/1` isn't
270
270
} ;
271
271
You can’t perform that action at this time.
0 commit comments