fix corner case in reduce_vars
#5919
Merged
This job succeeded
Loading
reduce_vars
#5919