提交 3077af74 编写于 作者: J Joey Robichaud 提交者: Joey Robichaud

Simplify return statement

上级 4fd9ce62
......@@ -2312,9 +2312,8 @@ private static bool IsQualifiedNameInUsingDirective(SemanticModel model, NameSyn
private static bool IsGlobalAliasQualifiedName(NameSyntax name)
{
// Checks whether the `global::` alias is applied to the name
return name is AliasQualifiedNameSyntax aliasName
? aliasName.Alias.Identifier.IsKind(SyntaxKind.GlobalKeyword)
: false;
return name is AliasQualifiedNameSyntax aliasName &&
aliasName.Alias.Identifier.IsKind(SyntaxKind.GlobalKeyword);
}
private static bool IsInScriptClass(SemanticModel model, NameSyntax name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册