small cleanups

This commit is contained in:
2025-10-10 17:42:53 +01:00
parent 075dc6b545
commit c31cada271
3 changed files with 2 additions and 5 deletions

View File

@@ -108,5 +108,4 @@ func (d *D) Export(c context.Context, w io.Writer, pubkeys ...[]byte) {
}
}
}
return
}

View File

@@ -31,9 +31,9 @@ func (d *D) GetSerialsByRange(idx Range) (
for it.Seek(endBoundary); it.Valid(); it.Next() {
item := it.Item()
var key []byte
key = item.Key()
key = item.Key()[:len(key)-5]
if bytes.Compare(
key[:len(key)-5], idx.Start,
key, idx.Start,
) < 0 {
// didn't find it within the timestamp range
return

View File

@@ -83,6 +83,4 @@ func (d *D) Import(rr io.Reader) {
// Help garbage collection
tmp = nil
}()
return
}