Skip to content

Commit

Permalink
Remove unnecessary branch from limit logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Aug 19, 2024
1 parent 0a025ff commit 6bfc896
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/graph/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bfc896

Please sign in to comment.