Skip to content

Commit b3509d4

Browse files
committed
Rename variable
1 parent 49aaad1 commit b3509d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StructuredLogViewer/Controls/BuildControl.xaml.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ private object FindInFiles(string searchText, int maxResults, CancellationToken
10301030
{
10311031
var results = new List<(string, IEnumerable<(int, string)>)>();
10321032

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

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

10431043
if (isSecretsSearch)
10441044
{
1045-
var searchResults = secretsSearch.SearchSecrets(file.Value.Text, notQueryMatcher.NotMatchers, maxResults);
1045+
var searchResults = secretsSearch.SearchSecrets(file.Value.Text, nodeQueryMatcher.NotMatchers, maxResults);
10461046
if (searchResults.Count > 0)
10471047
{
10481048
results.Add((file.Key, searchResults.Select(sr => (sr.Line - 1, sr.Secret))));

0 commit comments

Comments
 (0)