This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Commit b80d423
authored
Always return decision in
d36b617 changed the logic in `findHandler` when it comes to returning
decision: after d36b617, the decision is only filled out if the
predicate matched (otherwise it's `nil`).
Previously, the decision would be returned in both scenarios: if
predicate matched or if predicate did not match.
d36b617 caused a regression in integration tests: if an index is closed
in the configuration, the predicate does not match, but the code still
needs a decision (with `IsClosed: true`) to be able to return a correct
`index_closed_exception` response. Without a decision (`nil`) it wasn't
able to return that expected response.findHandler (#1008)1 parent 64beed6 commit b80d423
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments