Skip to content

Commit 21e4bcd

Browse files
author
sezalchug
committed
nits
1 parent b3bad84 commit 21e4bcd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Config/Converters/RuntimeHealthOptionsConvertorFactory.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,12 @@ internal HealthCheckOptionsConverter(bool replaceEnvVar)
4444
}
4545

4646
/// <summary>
47-
/// Defines how DAB reads the data-source's health options and defines which values are
48-
/// used to instantiate DatasourceHealthCheckConfig.
47+
/// Defines how DAB reads the runtime's health options and defines which values are
48+
/// used to instantiate RuntimeHealthCheckConfig.
4949
/// </summary>
5050
/// <exception cref="JsonException">Thrown when improperly formatted health check options are provided.</exception>
5151
public override RuntimeHealthCheckConfig? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
5252
{
53-
if (reader.TokenType == JsonTokenType.Null)
54-
{
55-
return new RuntimeHealthCheckConfig();
56-
}
57-
5853
if (reader.TokenType is JsonTokenType.StartObject)
5954
{
6055
bool? enabled = null;

0 commit comments

Comments
 (0)