ran go fix

This commit is contained in:
jay
2026-11-22 11:47:29 -05:00
parent 306e55f408
commit 7ae7a632f3
+1 -4
View File
@@ -83,10 +83,7 @@ func setDefaultWriteOptions(opts *WriteOptions) {
func enforcePolicyRules(in []roots.ValidatedEvent, boltdb *bolt.DB, batchSize int) (queued []roots.ValidatedEvent, excluded []ExcludedEvent) {
for i := 0; i < len(in); i += batchSize {
end := i + batchSize
if end > len(in) {
end = len(in)
}
end := min(i+batchSize, len(in))
batch := in[i:end]
eventIDs := make([]string, 0, len(batch))