fluffynuts commented on code in PR #365:
URL: https://github.com/apache/logging-log4net/pull/365#discussion_r4639184195


##########
src/log4net/Util/CompositeProperties.cs:
##########
@@ -116,20 +117,21 @@ public void Add(ReadOnlyPropertiesDictionary properties)
   /// </remarks>
   public PropertiesDictionary Flatten()
   {
-    if (_flattened is null)
+    if (_flattened is PropertiesDictionary flattened)

Review Comment:
   minor: could be simplified to `if (_flattened is {} flattened)`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to