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