Skip to content

Commit 338e49e

Browse files
CopilotAniruddh25
andcommitted
Fix whitespace formatting errors
- Remove trailing whitespace from blank lines in DatasourceHealthOptionsConvertorFactory.cs - Remove trailing whitespace from multi-line ternary operators in ConfigGenerator.cs - Ensures compliance with dotnet format whitespace rules Co-authored-by: Aniruddh25 <[email protected]>
1 parent b90d90a commit 338e49e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Cli/ConfigGenerator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,12 +700,12 @@ private static bool TryUpdateConfiguredDataSourceOptions(
700700
// Update the existing health config with the new name while preserving other settings.
701701
// DatasourceHealthCheckConfig is a record (immutable), so we create a new instance.
702702
// Preserve threshold only if it was explicitly set by the user
703-
int? thresholdToPreserve = datasourceHealthCheckConfig.UserProvidedThresholdMs
704-
? datasourceHealthCheckConfig.ThresholdMs
703+
int? thresholdToPreserve = datasourceHealthCheckConfig.UserProvidedThresholdMs
704+
? datasourceHealthCheckConfig.ThresholdMs
705705
: null;
706706
// Preserve enabled only if it was explicitly set by the user
707-
bool? enabledToPreserve = datasourceHealthCheckConfig.UserProvidedEnabled
708-
? datasourceHealthCheckConfig.Enabled
707+
bool? enabledToPreserve = datasourceHealthCheckConfig.UserProvidedEnabled
708+
? datasourceHealthCheckConfig.Enabled
709709
: null;
710710
datasourceHealthCheckConfig = new DatasourceHealthCheckConfig(
711711
enabled: enabledToPreserve,

src/Config/Converters/DatasourceHealthOptionsConvertorFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ public override void Write(Utf8JsonWriter writer, DatasourceHealthCheckConfig va
121121
if (value?.UserProvidedEnabled is true || value?.Name is not null || value?.UserProvidedThresholdMs is true)
122122
{
123123
writer.WriteStartObject();
124-
124+
125125
// Only write enabled if it was explicitly provided by the user
126126
if (value?.UserProvidedEnabled is true)
127127
{
128128
writer.WritePropertyName("enabled");
129129
JsonSerializer.Serialize(writer, value.Enabled, options);
130130
}
131-
131+
132132
if (value?.Name is not null)
133133
{
134134
writer.WritePropertyName("name");

0 commit comments

Comments
 (0)