Skip to content

Commit

Permalink
Addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gbbafna committed Aug 11, 2022
1 parent 41e1244 commit 6b39fca
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ class TransportIndexPolicyAction @Inject constructor(

@Suppress("ComplexMethod", "LongMethod", "NestedBlockDepth")
private fun validate() {
val states = request.policy.states
for (state in states) {
for (action in state.actions) {
request.policy.states.forEach { state ->
state.actions.forEach { action ->
if (action is ReplicaCountAction) {
val error = awarenessReplicaBalance.validate(action.numOfReplicas)
if (error.isPresent) {
Expand Down

0 comments on commit 6b39fca

Please sign in to comment.