minor: Replace truncate(0) with clear()
#21898
Merged
Loading
truncate(0) with clear()
#21898