Skip to content

Commit a3f66f6

Browse files
committed
Fix formatting issues in EnhancedMockDataBackend for improved readability
1 parent 8259695 commit a3f66f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

samples/Demo/Services/EnhancedMockDataBackend.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public async Task<IEnumerable<NLWebResult>> SearchAsync(string query, string? si
6969
// Strategy 2: LLM AVAILABLE = Use real data with strict isolation
7070
bool isDotNetQuery = queryLower.Contains("blog") || queryLower.Contains("news") || queryLower.Contains("dotnet") ||
7171
queryLower.Contains(".net") || queryLower.Contains("release") || queryLower.Contains("update") ||
72-
queryLower.Contains("preview") || queryLower.Contains("rc") || queryLower.Contains("announce"); if (isDotNetQuery)
72+
queryLower.Contains("preview") || queryLower.Contains("rc") || queryLower.Contains("announce"); if (isDotNetQuery)
7373
{
7474
// Strategy 2a: .NET queries get ONLY RSS feed data (NO mock data)
7575
_logger.LogInformation("LLM available + .NET query detected - using ONLY RSS feed data");
@@ -128,9 +128,10 @@ public async Task<IEnumerable<NLWebResult>> SearchAsync(string query, string? si
128128
{
129129
_logger.LogWarning("DATA CONTAMINATION DETECTED: Found {RssCount} RSS items in non-.NET query - removing them", rssFeedCount);
130130
allResults = allResults.Where(r => r.Site != "devblogs.microsoft.com").ToList();
131-
} if (isDotNetQuery && (staticDataCount > 0 || mockDataCount > 0))
131+
}
132+
if (isDotNetQuery && (staticDataCount > 0 || mockDataCount > 0))
132133
{
133-
_logger.LogWarning("DATA CONTAMINATION DETECTED: Found {StaticCount} static + {MockCount} mock items in .NET query - keeping only RSS",
134+
_logger.LogWarning("DATA CONTAMINATION DETECTED: Found {StaticCount} static + {MockCount} mock items in .NET query - keeping only RSS",
134135
staticDataCount, mockDataCount);
135136
allResults = allResults.Where(r => r.Site == "devblogs.microsoft.com").ToList();
136137
}

0 commit comments

Comments
 (0)