WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 04df455

Browse files
authored
Removing unnecessary conditional check (#122271)
Removed preprocessor directive for ArgumentNullException check.
1 parent 3114f8e commit 04df455

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/libraries/Common/src/System/TimeProvider.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,7 @@ public TimeSpan GetElapsedTime(long startingTimestamp, long endingTimestamp)
159159
/// </remarks>
160160
public virtual ITimer CreateTimer(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period)
161161
{
162-
#if SYSTEM_PRIVATE_CORELIB
163-
ArgumentNullException.ThrowIfNull(callback);
164-
#else
165162
ArgumentNullException.ThrowIfNull(callback);
166-
#endif // SYSTEM_PRIVATE_CORELIB
167163

168164
return new SystemTimeProviderTimer(dueTime, period, callback, state);
169165
}

0 commit comments

Comments
 (0)