Skip to content

Commit 4708848

Browse files
committed
Removed c#6 syntax
1 parent 0d01474 commit 4708848

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Shared/Queue/DefaultEventQueue.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ public void SuspendProcessing(TimeSpan? duration = null, bool discardFutureQueue
168168
public event EventHandler<EventsPostedEventArgs> EventsPosted;
169169

170170
protected virtual void OnEventsPosted(EventsPostedEventArgs e) {
171-
EventsPosted?.Invoke(this, e);
171+
if (EventsPosted != null)
172+
EventsPosted.Invoke(this, e);
172173
}
173174

174175
private bool IsQueueProcessingSuspended {

0 commit comments

Comments
 (0)