Commit da43f67
committed
fix(ops): fall back on empty-string env vars in killswitch
GitHub Actions passes unset repo variables as "" rather than undefined,
so `??` would not fall through to defaults. `Number("")` is 0, which
caused every metric to trip on the first manual run. Switch to `||`
so both undefined and "" drop to the built-in defaults.1 parent 602d153 commit da43f67
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
0 commit comments