Skip to content

Commit a94adbe

Browse files
Apply suggestions from code review
Co-authored-by: Kevin B <[email protected]>
1 parent 27204c7 commit a94adbe

File tree

5 files changed

+3
-12
lines changed

5 files changed

+3
-12
lines changed

EssentialCSharp.Chat.Shared/EssentialCSharp.Chat.Common.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
75
</PropertyGroup>
86

97
<ItemGroup>

EssentialCSharp.Chat.Shared/Services/AIChatService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public AIChatService(IOptions<AIOptions> options, AISearchService searchService)
105105
/// </summary>
106106
private async Task<string> EnrichPromptWithContext(string prompt, bool enableContextualSearch, CancellationToken cancellationToken)
107107
{
108-
if (!enableContextualSearch || _SearchService == null)
108+
if (!enableContextualSearch)
109109
{
110110
return prompt;
111111
}

EssentialCSharp.Chat.Shared/Services/FileChunkingResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ public class FileChunkingResult
99
public string FilePath { get; set; } = string.Empty;
1010
public int OriginalCharCount { get; set; }
1111
public int ChunkCount { get; set; }
12-
public List<string> Chunks { get; set; } = new();
12+
public List<string> Chunks { get; set; } = [];
1313
public int TotalChunkCharacters { get; set; }
1414
}

EssentialCSharp.Chat.Tests/EssentialCSharp.Chat.Tests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
75
<IsPackable>false</IsPackable>
86
</PropertyGroup>
97

EssentialCSharp.VectorDbBuilder/EssentialCSharp.VectorDbBuilder.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net9.0</TargetFramework>
6-
<ImplicitUsings>enable</ImplicitUsings>
7-
<Nullable>enable</Nullable>
86
</PropertyGroup>
97

108
<ItemGroup>
@@ -22,10 +20,7 @@
2220
</ItemGroup>
2321

2422
<ItemGroup>
25-
<None Update="appsettings.json">
26-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27-
</None>
28-
<None Update="appsettings.Development.json">
23+
<None Update="appsettings*.json">
2924
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3025
</None>
3126
</ItemGroup>

0 commit comments

Comments
 (0)