Skip to content

Commit

Permalink
Fix nullable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mavasani committed Apr 16, 2020
1 parent c827730 commit 01af39f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Formatting.Rules;
using Microsoft.CodeAnalysis.Options;
using Roslyn.Utilities;

namespace Microsoft.CodeAnalysis.CSharp.Formatting
{
Expand All @@ -23,7 +24,7 @@ internal class SpacingFormattingRule : BaseFormattingRule
return nextOperation.Invoke();
}

System.Diagnostics.Debug.Assert(previousToken.Parent != null && currentToken.Parent != null);
RoslynDebug.Assert(previousToken.Parent != null && currentToken.Parent != null);

var previousKind = previousToken.Kind();
var currentKind = currentToken.Kind();
Expand Down

0 comments on commit 01af39f

Please sign in to comment.