Skip to content

Commit

Permalink
Fix silly code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Akgerman committed Jun 5, 2022
1 parent d40e402 commit f3ed63d
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ protected override void DoAppend(StringBuilder builder, LogEventInfo logEvent)
}

var cookies = GetCookies(httpResponse);
#if ASP_NET_CORE
if (cookies.Count > 0)
#else
if(cookies.Count > 0)
#endif
{
bool checkForExclude = (CookieNames == null || CookieNames.Count == 0) && Exclude?.Count > 0;
var cookieValues = GetCookieValues(cookies, checkForExclude);
Expand Down

0 comments on commit f3ed63d

Please sign in to comment.