aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/batch_apply.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-07 21:33:31 +0800
committerGravatar Runxi Yu2026-03-07 21:33:31 +0800
commit26f7f0e33f667a934532e393f40c984172c15889 (patch)
tree60347d579e086be5f68a83cd66ea670df579e865 /refstore/files/batch_apply.go
parentreceivepack: Fix lint (diff)
signatureNo signature
refstore/files: Fix lints
Diffstat (limited to 'refstore/files/batch_apply.go')
-rw-r--r--refstore/files/batch_apply.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/refstore/files/batch_apply.go b/refstore/files/batch_apply.go
index 4274df0b..0c217c56 100644
--- a/refstore/files/batch_apply.go
+++ b/refstore/files/batch_apply.go
@@ -38,18 +38,21 @@ func (batch *Batch) Apply() ([]refstore.BatchResult, error) {
ops: []txOp{op},
}
- if err := tx.validateOp(op); err != nil {
+ err := tx.validateOp(op)
+ if err != nil {
results[i].Error = err
+
continue
}
- err := tx.Commit()
+ err = tx.Commit()
if err == nil {
continue
}
if isBatchRejected(err) {
results[i].Error = err
+
continue
}