Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed Nov 1, 2024
1 parent 49aaad1 commit b3509d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StructuredLogViewer/Controls/BuildControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ private object FindInFiles(string searchText, int maxResults, CancellationToken
{
var results = new List<(string, IEnumerable<(int, string)>)>();

NodeQueryMatcher notQueryMatcher = new NodeQueryMatcher(searchText);
NodeQueryMatcher nodeQueryMatcher = new NodeQueryMatcher(searchText);
bool isSecretsSearch = !string.IsNullOrEmpty(searchText) && searchText.StartsWith("$secret");

foreach (var file in archiveFile.Files)
Expand All @@ -1042,7 +1042,7 @@ private object FindInFiles(string searchText, int maxResults, CancellationToken

if (isSecretsSearch)
{
var searchResults = secretsSearch.SearchSecrets(file.Value.Text, notQueryMatcher.NotMatchers, maxResults);
var searchResults = secretsSearch.SearchSecrets(file.Value.Text, nodeQueryMatcher.NotMatchers, maxResults);
if (searchResults.Count > 0)
{
results.Add((file.Key, searchResults.Select(sr => (sr.Line - 1, sr.Secret))));
Expand Down

0 comments on commit b3509d4

Please sign in to comment.