diff --git a/backend/src/Designer/Helpers/JsonConverterHelpers/OptionConverterHelper.cs b/backend/src/Designer/Helpers/JsonConverterHelpers/OptionConverterHelper.cs index 67d7c2252b3..a15ad94deeb 100644 --- a/backend/src/Designer/Helpers/JsonConverterHelpers/OptionConverterHelper.cs +++ b/backend/src/Designer/Helpers/JsonConverterHelpers/OptionConverterHelper.cs @@ -8,7 +8,6 @@ public class OptionConverter : JsonConverter { public override object Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { - // Handle JSON token type to convert to either string, bool, or double return reader.TokenType switch { JsonTokenType.String => reader.GetString(), @@ -21,7 +20,6 @@ JsonTokenType.Number when reader.TryGetDouble(out double d) => d, public override void Write(Utf8JsonWriter writer, object value, JsonSerializerOptions options) { - // Serialize based on the type of the object switch (value) { case string s: diff --git a/backend/src/Designer/Models/Option.cs b/backend/src/Designer/Models/Option.cs index 22c5c211387..ddfa6b9559e 100644 --- a/backend/src/Designer/Models/Option.cs +++ b/backend/src/Designer/Models/Option.cs @@ -37,5 +37,4 @@ public class Option [JsonPropertyName("helpText")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string HelpText { get; set; } - } diff --git a/backend/tests/Designer.Tests/Controllers/OptionsController/UpdateOptionsTests.cs b/backend/tests/Designer.Tests/Controllers/OptionsController/UpdateOptionsTests.cs index d4fe5662c27..1d6da7633d9 100644 --- a/backend/tests/Designer.Tests/Controllers/OptionsController/UpdateOptionsTests.cs +++ b/backend/tests/Designer.Tests/Controllers/OptionsController/UpdateOptionsTests.cs @@ -33,12 +33,12 @@ public async Task Put_Returns_200OK_When_Creating_New_OptionsList() var newOptionsList = new List