Skip to content

Commit 7d6a488

Browse files
committed
update
1 parent 4f915d5 commit 7d6a488

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ const stateSelector = [
291291
'[class^="StateLabel"]',
292292
].join(',');
293293

294-
export const isDraftPR = (): boolean => isPR() && $(stateSelector)?.textContent!.trim() === 'Draft';
294+
export const isDraftPR = (): boolean => isPR() && $(stateSelector)!.textContent!.trim() === 'Draft';
295295
export const isOpenPR = (): boolean => {
296296
if (isPR()) {
297297
return false;
298298
}
299299

300-
const status = $(stateSelector)?.textContent!.trim();
300+
const status = $(stateSelector)!.textContent!.trim();
301301
return status === 'Open' || status === 'Draft';
302302
};
303303

@@ -306,7 +306,7 @@ export const isMergedPR = (): boolean => {
306306
return false;
307307
}
308308

309-
const status = $(stateSelector)?.textContent!.trim();
309+
const status = $(stateSelector)!.textContent!.trim();
310310
return status === 'Merged';
311311
};
312312

@@ -315,7 +315,7 @@ export const isClosedPR = (): boolean => {
315315
return false;
316316
}
317317

318-
const status = $(stateSelector)?.textContent!.trim();
318+
const status = $(stateSelector)!.textContent!.trim();
319319
return status === 'Closed' || status === 'Merged';
320320
};
321321

@@ -324,7 +324,7 @@ export const isClosedIssue = (): boolean => {
324324
return false;
325325
}
326326

327-
const status = $(stateSelector)?.textContent!.trim();
327+
const status = $(stateSelector)!.textContent!.trim();
328328
return status === 'Closed';
329329
};
330330

0 commit comments

Comments
 (0)