Skip to content

Commit

Permalink
Merge pull request #2030 from authzed/remove-unnecessary-branch
Browse files Browse the repository at this point in the history
Remove unnecessary branch from limit logic
  • Loading branch information
josephschorr authored Aug 19, 2024
2 parents 0a025ff + 6bfc896 commit aa3bb8d
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 aa3bb8d

Please sign in to comment.