Skip to content

Commit

Permalink
Change Any() to Count > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Akgerman committed Jun 5, 2022
1 parent 9d94fc2 commit d40e402
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using NLog.Config;
using NLog.LayoutRenderers;
using NLog.Web.Enums;
using NLog.Web.Internal;
Expand Down Expand Up @@ -74,7 +72,7 @@ protected override void DoAppend(StringBuilder builder, LogEventInfo logEvent)

var cookies = GetCookies(httpResponse);
#if ASP_NET_CORE
if (cookies.Any())
if (cookies.Count > 0)
#else
if(cookies.Count > 0)
#endif
Expand Down

0 comments on commit d40e402

Please sign in to comment.