Skip to content

Commit 5a7f15f

Browse files
committed
Remove unnecessary optional chaining
1 parent 8f66cce commit 5a7f15f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/javascript/getDeployPullRequestList/getDeployPullRequestList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function run() {
103103
let reason = await shouldSkipVersion(lastSuccessfulDeploy, inputTag, isProductionDeploy);
104104
while (lastSuccessfulDeploy && reason) {
105105
console.log(
106-
`Deploy of tag ${lastSuccessfulDeploy?.head_branch} was not valid as a base for comparison, looking at the next one. Reason: ${reason}`,
106+
`Deploy of tag ${lastSuccessfulDeploy.head_branch} was not valid as a base for comparison, looking at the next one. Reason: ${reason}`,
107107
lastSuccessfulDeploy.html_url,
108108
);
109109
lastSuccessfulDeploy = completedDeploys.shift();

.github/actions/javascript/getDeployPullRequestList/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11582,7 +11582,7 @@ async function run() {
1158211582
}
1158311583
let reason = await shouldSkipVersion(lastSuccessfulDeploy, inputTag, isProductionDeploy);
1158411584
while (lastSuccessfulDeploy && reason) {
11585-
console.log(`Deploy of tag ${lastSuccessfulDeploy?.head_branch} was not valid as a base for comparison, looking at the next one. Reason: ${reason}`, lastSuccessfulDeploy.html_url);
11585+
console.log(`Deploy of tag ${lastSuccessfulDeploy.head_branch} was not valid as a base for comparison, looking at the next one. Reason: ${reason}`, lastSuccessfulDeploy.html_url);
1158611586
lastSuccessfulDeploy = completedDeploys.shift();
1158711587
if (!lastSuccessfulDeploy) {
1158811588
throw new Error('Could not find a prior successful deploy');

0 commit comments

Comments
 (0)