From 9f9f8c385b36e5a22be2b5eade659c8dd6b08b2a Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 16 Jan 2024 22:53:41 +0100 Subject: [PATCH] refactoring --- BrickOwlSharp.Client/BrickOwlClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BrickOwlSharp.Client/BrickOwlClient.cs b/BrickOwlSharp.Client/BrickOwlClient.cs index 554f2cd..39aa1f4 100644 --- a/BrickOwlSharp.Client/BrickOwlClient.cs +++ b/BrickOwlSharp.Client/BrickOwlClient.cs @@ -131,7 +131,7 @@ public async Task UpdateOrderStatusAsync(int orderId, OrderStatus status, { BrickOwlResult result = await ExecutePost(url, formData, cancellationToken: cancellationToken); _measureRequest(ResourceType.Order, cancellationToken); - if (result.Status.ToLower() == "success") + if (string.Equals(result.Status, "success", StringComparison.OrdinalIgnoreCase)) { return true; }