aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/batch_abort.go
blob: 74aaa439e9c8647a9f8eb97cf1aeb712288e33ca (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package files

import "errors"

func (batch *Batch) Abort() error {
	if batch.closed {
		return errors.New("refstore/files: batch already closed")
	}

	batch.closed = true

	return nil
}