From acc47501ea1ee85a1776111f20b0cc92719ddab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Levente=20T=C3=B3th?= Date: Wed, 8 Nov 2023 13:06:32 +0100 Subject: [PATCH] fix: hopefully the last lint error --- pkg/file/redundancy/redundancy.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/file/redundancy/redundancy.go b/pkg/file/redundancy/redundancy.go index 0a34129690a..8406e7c20d3 100644 --- a/pkg/file/redundancy/redundancy.go +++ b/pkg/file/redundancy/redundancy.go @@ -175,7 +175,10 @@ func (p *Params) encode(chunkLevel int, callback ParityChunkCallback) error { } // write parity chunk to the level above - callback(chunkLevel+1, span, args.Ref) + err = callback(chunkLevel+1, span, args.Ref) + if err != nil { + return err + } } // reset cursor of dataBuffer in case it was a full chunk p.cursor[chunkLevel] = 0