报告包含
else
分支且条件被否定的
if
语句。 翻转
if
和
else
分支的顺序通常会改进此类语句的清晰度。
示例:
if (!condition) { return "1" } else { return "2" }