Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
YuliiaKovalova committed Oct 31, 2024
1 parent 70a6564 commit 6e4fc91
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/StructuredLogger.Utils/SecretsSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ namespace Microsoft.Build.Logging.StructuredLogger
public class SecretsSearch : ISearchExtension
{
private readonly Build _build;
private readonly Search _search;
private readonly Dictionary<SensitiveDataKind, ISensitiveDataDetector> _detectors;
private readonly Dictionary<string, Dictionary<SensitiveDataKind, List<SecretDescriptor>>> _secretCache = new();

public SecretsSearch(Build build)
{
_build = build ?? throw new ArgumentNullException(nameof(build));
_search = new Search([build], build.StringTable.Instances, 5000, markResultsInTree: false);

_detectors = new()
{
Expand Down

0 comments on commit 6e4fc91

Please sign in to comment.