报告可以简化为单个赋值或 return 语句的 if 语句。

示例:


  if (foo())
    return true;
  else
    return false;

在应用快速修复后:


  return foo();