[clang-tidy][NFC] Apply readability-redundant-nested-if 3/N (#214693) GitOrigin-RevId: 1533fd95be9ff691b0bd70e589ffa273cf64e9db