Skip to content

Commit 2cb11dd

Browse files
committed
Removed use of Null-Conditional Operator
Don't want to force the use of VS2015.
1 parent b4f14a3 commit 2cb11dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Src/StackifyLib.log4net.Tests/StackifyAppenderTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ public void PauseUpload(bool isPaused)
124124
public void QueueMessage(LogMsg msg)
125125
{
126126
var action = OnQueueMessage;
127-
action?.Invoke(msg);
127+
if (action != null)
128+
{
129+
action.Invoke(msg);
130+
}
128131
}
129132
}
130133
}

0 commit comments

Comments
 (0)