chore: Introduce Qodana static analysis configuration and apply minor code formatting and C# 12 collection expressions.
This commit is contained in:
@@ -34,11 +34,11 @@ public static class HistoryCommand
|
||||
// Apply grep filter
|
||||
if (!string.IsNullOrWhiteSpace(grep))
|
||||
{
|
||||
entries = entries.Where(e =>
|
||||
e.RawTranscript.Contains(grep, StringComparison.OrdinalIgnoreCase) ||
|
||||
entries = entries.Where(e =>
|
||||
e.RawTranscript.Contains(grep, StringComparison.OrdinalIgnoreCase) ||
|
||||
e.RefinedText.Contains(grep, StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
|
||||
|
||||
if (entries.Count == 0)
|
||||
{
|
||||
AnsiConsole.MarkupLine($"[yellow]No history entries match '{grep}'.[/]");
|
||||
|
||||
Reference in New Issue
Block a user