shithub: furgit

ref: c3731c4eff12cc9e6636f89128948d86596ad860
dir: /refstore/files/batch_abort.go/

View raw version
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
}