Skip to content

Commit

Permalink
Invert if
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Apr 28, 2024
1 parent 35a93e3 commit 8b8b2be
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -96,12 +96,10 @@ private void EmitGetValueMethods()

private void EmitNotNullIfNotNull(string parameterName)
{
if (!_emitNotNullIfNotNull)
if (_emitNotNullIfNotNull)
{
return;
_writer.WriteLine($"[return: global::System.Diagnostics.CodeAnalysis.NotNullIfNotNull(nameof({parameterName}))]");
}

_writer.WriteLine($"[return: global::System.Diagnostics.CodeAnalysis.NotNullIfNotNull(nameof({parameterName}))]");
}

private void EmitBindMethods_ConfigurationBinder()
Expand Down

0 comments on commit 8b8b2be

Please sign in to comment.