Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Nov 21, 2024
1 parent 36f74cb commit e0b232c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<PropertyGroup Condition="'$(Configuration)' == 'Release' or '$(ContinuousIntegrationBuild)' == 'true'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Nodes;
Expand All @@ -29,7 +28,7 @@ namespace Elastic.SemanticKernel.Connectors.Elasticsearch;
/// </summary>
internal class MockableElasticsearchClient
{
private static readonly RequestConfiguration CustomUserAgentRequestConfiguration = new RequestConfiguration
private static readonly RequestConfiguration CustomUserAgentRequestConfiguration = new()
{
UserAgent = UserAgent.Create("elasticsearch-net", typeof(IElasticsearchClientSettings), ["integration=MSSK"])
};
Expand Down

0 comments on commit e0b232c

Please sign in to comment.