The intent of the for loop in this case was to find (if present) an entity in the joinObserveArray who's queue has no elements, when that element was found hasValues was set to false and the for loop was exited.
The semantics of this code can be replaced with a more "idiomatic" find operation which will do the following:
loop over each element until an element is found
return the found element which can be used to set hasValues to false;
Thanks so much for your time reviewing this PR and have a great day!
The intent of the for loop in this case was to find (if present) an entity in the joinObserveArray who's queue has no elements, when that element was found hasValues was set to false and the for loop was exited.
The semantics of this code can be replaced with a more "idiomatic" find operation which will do the following:
Thanks so much for your time reviewing this PR and have a great day!