Skip to content

Commit e268a9b

Browse files
committed
fix: remove useless optional chaining operator
1 parent fb3a13f commit e268a9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/changelog-check.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ async function analyzePackageJsonChanges(
252252
}
253253
}
254254
if (
255-
versionLines?.[0]?.type === 'removed' &&
256-
versionLines?.[1]?.type === 'added'
255+
versionLines[0]?.type === 'removed' &&
256+
versionLines[1]?.type === 'added'
257257
) {
258258
oldVersion = versionLines[0].version;
259259
newVersion = versionLines[1].version;

0 commit comments

Comments
 (0)