Skip to content

Conversation

@WeihanLi
Copy link
Contributor

@WeihanLi WeihanLi commented Dec 7, 2025

Removed preprocessor directive for ArgumentNullException check.

Removed preprocessor directive for ArgumentNullException check.
Copilot AI review requested due to automatic review settings December 7, 2025 11:36
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Dec 7, 2025
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 7, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes an unnecessary preprocessor conditional around an ArgumentNullException.ThrowIfNull call in the TimeProvider class. The conditional compilation directive was redundant because both the SYSTEM_PRIVATE_CORELIB and non-SYSTEM_PRIVATE_CORELIB branches contained identical code.

Key Changes

  • Simplified the CreateTimer method by removing duplicate conditional compilation directives
  • No behavioral change - the same null check is now unconditionally applied

@jkotas jkotas added area-System.DateTime and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Dec 7, 2025
@jkotas jkotas enabled auto-merge (squash) December 7, 2025 12:40
Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@jkotas
Copy link
Member

jkotas commented Dec 7, 2025

/ba-g insufficient info in logs - timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.DateTime community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants