danger: Fix name code -> exitCode
This commit is contained in:
parent
0b83ab497d
commit
23c95fd7f6
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ function isGitDeletedError(error: unknown) {
|
||||||
return (
|
return (
|
||||||
typeof error === 'object' &&
|
typeof error === 'object' &&
|
||||||
error != null &&
|
error != null &&
|
||||||
error['code'] === 128 &&
|
error['exitCode'] === 128 &&
|
||||||
error['command']?.startsWith('git show ')
|
error['command']?.startsWith('git show ')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ export default function migrateBackboneToRedux() {
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
async run({ files, context }) {
|
async run({ files, context }) {
|
||||||
for (let file of files.touched) {
|
for (let file of files.modifiedOrCreated) {
|
||||||
let lines = await file.lines();
|
let lines = await file.lines();
|
||||||
let matchedLine: Line | null = null;
|
let matchedLine: Line | null = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue