Update cmd/roaring-migrate/main.go

Co-authored-by: Matthew Jaffee <jaffee@pilosa.com>
This commit is contained in:
tgruben 2022-02-14 12:17:55 -06:00 • committed by GitHub
parent 89598a7788
commit c4eebc6885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,7 @@ func (d *rbfFile) getDB(path, index string, shard uint64) (*rbf.DB, error) {
}
func (d *rbfFile) Close() error {
defer func() error {
//cleanup the tempdirectory
// clean up the temp directory
err := os.RemoveAll(d.temp)
if err != nil {
return err