Skip to content

Commit 8b16102

Browse files
authored
Update AuditingEndpointsCommunicator.cs
1 parent 0b97725 commit 8b16102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sql/Sql/Auditing/Services/AuditingEndpointsCommunicator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public DiagnosticSettingsResource CreateDiagnosticSettings(
166166
}
167167
}
168168

169-
if (settings.Logs.FirstOrDefault(l => string.Equals(l.Category, DefinitionsCommon.SQLSecurityAuditCategory)) == null)
169+
if (!settings.Logs.Any(l => string.Equals(l.Category, DefinitionsCommon.SQLSecurityAuditCategory)))
170170
{
171171
settings.Logs.Add(new LogSettings(true, DefinitionsCommon.SQLSecurityAuditCategory));
172172
}

0 commit comments

Comments
 (0)