报告包含 else 分支 且使用否定条件的 if 语句。 翻转 ifelse 分支的顺序 通常会改进这类语句的清晰度。

示例:


if (!condition) {
  return "1"
} else {
  return "2"
}