Commit 00c4857
authored
refactor(run_path): avoid carrying return_code across iterations (#2552)
Limit return_code to the per-script failure path instead of keeping it as loop state.
This does not change current behavior, but makes the code easier to reason about and avoids future stale-state bugs if the loop logic is refactored.
Signed-off-by: Josh <josh.t.richards@gmail.com>1 parent 1b37fe5 commit 00c4857
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | | - | |
| 48 | + | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| |||
0 commit comments