Skip to content

Commit f8dcd09

Browse files
committed
Remove call to MulticastDelegate.op_Equality
1 parent 0ae955d commit f8dcd09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CommunityToolkit.Mvvm.SourceGenerators/EmbeddedResources/ObservableObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ private bool SetPropertyAndNotifyOnCompletion<TTask>(ITaskNotifier<TTask> taskNo
427427

428428
if (isAlreadyCompletedOrNull)
429429
{
430-
if (callback != null)
430+
if ((object?)callback != null)
431431
{
432432
callback(newValue);
433433
}
@@ -450,7 +450,7 @@ async void MonitorTask()
450450
OnPropertyChanged(propertyName);
451451
}
452452

453-
if (callback != null)
453+
if ((object?)callback != null)
454454
{
455455
callback(newValue);
456456
}

0 commit comments

Comments
 (0)