提交 f60acae6 编写于 作者: C Cyrus Najmabadi

Remove unnecessary parens

上级 416f51ca
...@@ -143,7 +143,8 @@ private bool CanConvertTypes(ITypeSymbol typeArgument, ITypeSymbol returnExpress ...@@ -143,7 +143,8 @@ private bool CanConvertTypes(ITypeSymbol typeArgument, ITypeSymbol returnExpress
var rightArguments = returnExpressionType.GetTypeArguments(); var rightArguments = returnExpressionType.GetTypeArguments();
// If we have a mismatch in the number of type arguments we can immediately return as there is no way the types are convertible // If we have a mismatch in the number of type arguments we can immediately return as there is no way the types are convertible
if ((leftArguments != null && rightArguments != null) && if (leftArguments != null &&
rightArguments != null &&
leftArguments.Length != rightArguments.Length) leftArguments.Length != rightArguments.Length)
{ {
return false; return false;
......
...@@ -27,8 +27,9 @@ internal static ImmutableArray<Words> GetBaseNames(ITypeSymbol type, bool plural ...@@ -27,8 +27,9 @@ internal static ImmutableArray<Words> GetBaseNames(ITypeSymbol type, bool plural
internal static ImmutableArray<Words> GetBaseNames(IAliasSymbol alias) internal static ImmutableArray<Words> GetBaseNames(IAliasSymbol alias)
{ {
var name = alias.Name; var name = alias.Name;
if (alias.Target.IsType && (((INamedTypeSymbol)alias.Target).IsInterfaceType() if (alias.Target.IsType &&
&& CanRemoveInterfacePrefix(name))) ((INamedTypeSymbol)alias.Target).IsInterfaceType() &&
CanRemoveInterfacePrefix(name))
{ {
name = name.Substring(1); name = name.Substring(1);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册