将两个嵌套的 if 语句合并为一个, 前提是第一个 if 语句中没有 elsifelse 分支。