From 6bfc896784cfb64ebe52a68a241c36888fc33d96 Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Mon, 19 Aug 2024 09:00:23 -0600 Subject: [PATCH] Remove unnecessary branch from limit logic --- internal/graph/limits.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/graph/limits.go b/internal/graph/limits.go index 40fe874db7..6b2e2bde05 100644 --- a/internal/graph/limits.go +++ b/internal/graph/limits.go @@ -49,11 +49,6 @@ func (lt *limitTracker) prepareForPublishing() bool { return false } - if lt.currentLimit == 1 { - lt.currentLimit = 0 - return true - } - // otherwise, remove the element from the limit. lt.currentLimit-- return true