From 2d78890c1322b3ef347a1428750bec55fafe7bf3 Mon Sep 17 00:00:00 2001 From: Ismail Khoffi Date: Mon, 4 Mar 2024 15:58:24 +0100 Subject: [PATCH] Fix tests --- leopard.go | 2 +- leopard8.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/leopard.go b/leopard.go index 098c1b3..2ae1b5b 100644 --- a/leopard.go +++ b/leopard.go @@ -442,7 +442,7 @@ func (r *leopardFF16) reconstruct(shards [][]byte, recoverAll bool, required []b } } for i := 0; i < r.dataShards; i++ { - if len(shards[i]) == 0 && (recoverAll || (required != nil && required[i])) { + if len(shards[i]) == 0 /*&& (recoverAll || (required != nil && required[i]))*/ { errLocs[i+m] = 1 if LEO_ERROR_BITFIELD_OPT { errorBits.set(i + m) diff --git a/leopard8.go b/leopard8.go index 0efb3bf..9f2f5e0 100644 --- a/leopard8.go +++ b/leopard8.go @@ -479,7 +479,7 @@ func (r *leopardFF8) reconstruct(shards [][]byte, recoverAll bool, required []bo } } for i := 0; i < r.dataShards; i++ { - if len(shards[i]) == 0 && (recoverAll || (required != nil && required[i])) { + if len(shards[i]) == 0 /*&& (recoverAll || (required != nil && required[i]))*/ { errLocs[i+m] = 1 if LEO_ERROR_BITFIELD_OPT { errorBits.set(i + m)