From e9c788a77122bd8421565555d73391c49eedcb61 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 29 Nov 2021 15:42:47 +0100 Subject: [PATCH] Better fix. --- backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs b/backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs index 6d2fe3625..34fc891e9 100644 --- a/backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs +++ b/backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs @@ -167,7 +167,7 @@ namespace Squidex.Infrastructure.Commands var errorRate = (double)handlerErrors / handledIds.Count; - if (errorRate > 0 && errorRate >= errorThreshold) + if (errorRate > errorThreshold) { throw new InvalidOperationException($"Error rate of {errorRate} is above threshold {errorThreshold}."); }