Commit cf7e9ee
committed
refactor(server): Fix dead branch in addCustomMiddleware
The early-return check `!projectCustomMiddleware.length === 0` parses as
`(!length) === 0`, which is always false for both empty and non-empty
arrays. The branch never fired, but the for-loop below already handles
empty arrays as a no-op, so behavior was unchanged.
Initially found by @EdrilanBerisha in
#13911 parent 4f5fd1b commit cf7e9ee
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
0 commit comments