Skip to content

fix(formatter): use ArgumentNullException.ThrowIfNull for null checks#17

Merged
ncipollina merged 2 commits into
mainfrom
fix/modernize-null-checks
Apr 18, 2026
Merged

fix(formatter): use ArgumentNullException.ThrowIfNull for null checks#17
ncipollina merged 2 commits into
mainfrom
fix/modernize-null-checks

Conversation

@ncipollina
Copy link
Copy Markdown
Contributor

Summary

  • Replaces old-style if (x == null) throw new ArgumentNullException(nameof(x)) pattern with ArgumentNullException.ThrowIfNull(x) in FormatEvent
  • Available in .NET 6+ — all target frameworks (net8–net11) support this

Test plan

  • PR build passes
  • Merge and verify preview NuGet publish triggers correctly

🤖 Generated with Claude Code

ncipollina and others added 2 commits April 17, 2026 22:33
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the type: fix Bug fix label Apr 18, 2026
@ncipollina ncipollina merged commit 63a9c76 into main Apr 18, 2026
4 checks passed
@ncipollina ncipollina deleted the fix/modernize-null-checks branch April 18, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant