提交 77facfa7 编写于 作者: C Cyrus Najmabadi 提交者: Sam Harwell

Remove unnecessary code nesting

上级 d6878f9d
...@@ -982,7 +982,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions ...@@ -982,7 +982,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions
issueSpan = memberAccess.Span issueSpan = memberAccess.Span
Return True Return True
Else End If
If Not memberAccess.IsRightSideOfDot() Then If Not memberAccess.IsRightSideOfDot() Then
Dim aliasReplacement As IAliasSymbol = Nothing Dim aliasReplacement As IAliasSymbol = Nothing
...@@ -1024,7 +1024,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions ...@@ -1024,7 +1024,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions
New SyntaxAnnotation(NameOf(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess))) New SyntaxAnnotation(NameOf(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess)))
issueSpan = memberAccess.Span issueSpan = memberAccess.Span
Return True Return True
End If End If
End If End If
...@@ -1048,7 +1047,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions ...@@ -1048,7 +1047,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions
If TryOmitModuleName(memberAccess, semanticModel, replacementNode, issueSpan, cancellationToken) Then If TryOmitModuleName(memberAccess, semanticModel, replacementNode, issueSpan, cancellationToken) Then
Return True Return True
End If End If
End If
Return False Return False
End Function End Function
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册