From 422f6b868ad7f6cec2e4fabc7fea7e38ed8d3dc7 Mon Sep 17 00:00:00 2001 From: Ales Pour Date: Tue, 30 Jul 2024 14:22:02 +0200 Subject: [PATCH] style: code formattting --- Client/Internal/RestClient.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Client/Internal/RestClient.cs b/Client/Internal/RestClient.cs index 441c4ab..f1b7a41 100644 --- a/Client/Internal/RestClient.cs +++ b/Client/Internal/RestClient.cs @@ -93,11 +93,16 @@ internal async Task Request(string path, HttpMethod method, HttpContent? content if (new DataContractJsonSerializer(typeof(ErrorBody)).ReadObject(memoryStream) is ErrorBody errorBody) { - if (!string.IsNullOrEmpty(errorBody.Message)) { // Cloud + if (!string.IsNullOrEmpty(errorBody.Message)) // Cloud + { message = errorBody.Message; - } else if ((errorBody.Data is not null) && !string.IsNullOrEmpty(errorBody.Data.ErrorMessage)) { // Edge + } + else if ((errorBody.Data is not null) && !string.IsNullOrEmpty(errorBody.Data.ErrorMessage)) // Edge + { message = errorBody.Data.ErrorMessage; - } else if (!string.IsNullOrEmpty(errorBody.Error)) { // Edge + } + else if (!string.IsNullOrEmpty(errorBody.Error)) // Edge + { message = errorBody.Error; } }