From 9b13cb5a765985edb28974753511ccd1de0e55cc Mon Sep 17 00:00:00 2001 From: JT Date: Sat, 20 Apr 2024 01:27:51 -0700 Subject: [PATCH] undo --- StabilityMatrix.Core/Models/ConnectedModelInfo.cs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/StabilityMatrix.Core/Models/ConnectedModelInfo.cs b/StabilityMatrix.Core/Models/ConnectedModelInfo.cs index 10438fb0..f9c1f8d0 100644 --- a/StabilityMatrix.Core/Models/ConnectedModelInfo.cs +++ b/StabilityMatrix.Core/Models/ConnectedModelInfo.cs @@ -57,17 +57,10 @@ public class ConnectedModelInfo public static ConnectedModelInfo? FromJson(string json) { - try - { - return JsonSerializer.Deserialize( - json, - new JsonSerializerOptions { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull } - ); - } - catch (JsonException) - { - return default; - } + return JsonSerializer.Deserialize( + json, + new JsonSerializerOptions { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull } + ); } ///