danger: Fix name code -> exitCode

This commit is contained in:
Jamie Kyle 2022-12-22 09:36:46 -08:00 committed by GitHub
parent 0b83ab497d
commit 23c95fd7f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ function isGitDeletedError(error: unknown) {
return (
typeof error === 'object' &&
error != null &&
error['code'] === 128 &&
error['exitCode'] === 128 &&
error['command']?.startsWith('git show ')
);
}

View file

@ -19,7 +19,7 @@ export default function migrateBackboneToRedux() {
`,
},
async run({ files, context }) {
for (let file of files.touched) {
for (let file of files.modifiedOrCreated) {
let lines = await file.lines();
let matchedLine: Line | null = null;