浏览代码

Style: Don't put an else after a return.

Stephen Kelly 12 年之前
父节点
当前提交
e3b7eac593
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      Source/cmGeneratorExpressionEvaluator.cxx

+ 0 - 3
Source/cmGeneratorExpressionEvaluator.cxx

@@ -266,8 +266,6 @@ struct CompilerIdNode : public cmGeneratorExpressionNode
       {
       return compilerId ? compilerId : "";
       }
-    else
-    {
     cmsys::RegularExpression compilerIdValidator;
     compilerIdValidator.compile("^[A-Za-z0-9_]*$");
     if (!compilerIdValidator.find(parameters.begin()->c_str()))
@@ -286,7 +284,6 @@ struct CompilerIdNode : public cmGeneratorExpressionNode
       return "1";
       }
     return "0";
-    }
   }
 };