From 3608540d458cb8bb1f8069e314b301b540c4b90b Mon Sep 17 00:00:00 2001 From: Nikolaj Date: Tue, 21 Feb 2023 15:35:36 +0100 Subject: [PATCH] Use is false instead of negation --- src/Umbraco.Core/Services/WebProfilerService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Services/WebProfilerService.cs b/src/Umbraco.Core/Services/WebProfilerService.cs index 83c984aeea..026c2afd38 100644 --- a/src/Umbraco.Core/Services/WebProfilerService.cs +++ b/src/Umbraco.Core/Services/WebProfilerService.cs @@ -19,7 +19,7 @@ internal sealed class WebProfilerService : IWebProfilerService { Attempt userIdAttempt = GetExecutingUserId(); - if (!userIdAttempt.Success) + if (userIdAttempt.Success is false) { return Attempt.FailWithStatus(WebProfilerOperationStatus.ExecutingUserNotFound, false); } @@ -32,7 +32,7 @@ internal sealed class WebProfilerService : IWebProfilerService { Attempt userIdAttempt = GetExecutingUserId(); - if (!userIdAttempt.Success) + if (userIdAttempt.Success is false) { return Attempt.FailWithStatus(WebProfilerOperationStatus.ExecutingUserNotFound, false); }