Commit f02e100
committed
refactor(exec-approvals): drop dead trustedSymlinkConsumed flag
Greptile review on #72572: the flag was logically dead — it can only be set
when i === 0, and the loop never revisits i === 0, so by the time it could
be true, !isImmediateRootChild is already true. Removing it makes the
at-most-one-hop invariant rest visibly on the !isImmediateRootChild guard.
Behavior is unchanged; existing tests still cover the single-hop allow,
double-hop reject, and untrusted-target reject paths.1 parent 4bab657 commit f02e100
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | | - | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments