[Bug 37120] New: PVS-Studio Error: Equivalent branches of if operator