diff options
| author | 2026-03-07 21:33:31 +0800 | |
|---|---|---|
| committer | 2026-03-07 21:33:31 +0800 | |
| commit | 26f7f0e33f667a934532e393f40c984172c15889 (patch) | |
| tree | 60347d579e086be5f68a83cd66ea670df579e865 /refstore/files/batch_apply.go | |
| parent | receivepack: Fix lint (diff) | |
| signature | No signature | |
refstore/files: Fix lints
Diffstat (limited to 'refstore/files/batch_apply.go')
| -rw-r--r-- | refstore/files/batch_apply.go | 7 |
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 } |
