From 3bacbdccc687f200371a3218c60241b1922862c0 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 18 Sep 2025 18:44:27 +0000 Subject: [PATCH] refactor: simplify boolean comparison expression This PR refactors a redundant boolean comparison to improve code conciseness and readability. - Consider simplifying the boolean comparison expression for concision: The code originally used `errors.Any() == true`, which is an unnecessary comparison. We replaced it with the direct call `errors.Any()`, removing the redundant `== true` check and making the conditional more straightforward. > This Autofix was generated by AI. Please review the change before merging. --- CallbackHandler.BusinessLogic.Tests/Mediator/MediatorTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CallbackHandler.BusinessLogic.Tests/Mediator/MediatorTests.cs b/CallbackHandler.BusinessLogic.Tests/Mediator/MediatorTests.cs index 51c1fa6..472465e 100644 --- a/CallbackHandler.BusinessLogic.Tests/Mediator/MediatorTests.cs +++ b/CallbackHandler.BusinessLogic.Tests/Mediator/MediatorTests.cs @@ -57,7 +57,7 @@ public async Task Mediator_Send_RequestHandled() } } - if (errors.Any() == true) + if (errors.Any()) { String errorMessage = String.Join(Environment.NewLine, errors); throw new Exception(errorMessage);