Browse Source

Remove redundant question marks.

pull/1672/head
Halil İbrahim Kalkan 7 years ago
parent
commit
4b5e9a1297
  1. 4
      framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/Auditing/AspNetCoreAuditLogContributor.cs

4
framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/Auditing/AspNetCoreAuditLogContributor.cs

@ -64,14 +64,14 @@ namespace Volo.Abp.AspNetCore.Auditing
protected virtual string GetBrowserInfo(HttpContext httpContext) protected virtual string GetBrowserInfo(HttpContext httpContext)
{ {
return httpContext?.Request?.Headers?["User-Agent"]; return httpContext.Request?.Headers?["User-Agent"];
} }
protected virtual string GetClientIpAddress(HttpContext httpContext) protected virtual string GetClientIpAddress(HttpContext httpContext)
{ {
try try
{ {
return httpContext?.Connection?.RemoteIpAddress?.ToString(); return httpContext.Connection?.RemoteIpAddress?.ToString();
} }
catch (Exception ex) catch (Exception ex)
{ {

Loading…
Cancel
Save