Skip to content

Commit e0b232c

Browse files
committed
Fix build warnings
1 parent 36f74cb commit e0b232c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
5454
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
5555
</PropertyGroup>
56-
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
56+
<PropertyGroup Condition="'$(Configuration)' == 'Release' or '$(ContinuousIntegrationBuild)' == 'true'">
5757
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
5858
</PropertyGroup>
5959
</Project>

Elastic.SemanticKernel.Connectors.Elasticsearch/MockableElasticsearchClient.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information.
44

5-
using System;
65
using System.Collections.Generic;
76
using System.Linq;
87
using System.Text.Json.Nodes;
@@ -29,7 +28,7 @@ namespace Elastic.SemanticKernel.Connectors.Elasticsearch;
2928
/// </summary>
3029
internal class MockableElasticsearchClient
3130
{
32-
private static readonly RequestConfiguration CustomUserAgentRequestConfiguration = new RequestConfiguration
31+
private static readonly RequestConfiguration CustomUserAgentRequestConfiguration = new()
3332
{
3433
UserAgent = UserAgent.Create("elasticsearch-net", typeof(IElasticsearchClientSettings), ["integration=MSSK"])
3534
};

0 commit comments

Comments
 (0)