From b3509d4ba071e7639bec1a80df5a577dfc9615f0 Mon Sep 17 00:00:00 2001 From: Kirill Osenkov Date: Fri, 1 Nov 2024 15:14:44 -0700 Subject: [PATCH] Rename variable --- src/StructuredLogViewer/Controls/BuildControl.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StructuredLogViewer/Controls/BuildControl.xaml.cs b/src/StructuredLogViewer/Controls/BuildControl.xaml.cs index 3d84dbca..956df1d5 100644 --- a/src/StructuredLogViewer/Controls/BuildControl.xaml.cs +++ b/src/StructuredLogViewer/Controls/BuildControl.xaml.cs @@ -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) @@ -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))));