docs: Fix comments (#195)
parent
77188e96d2
commit
9c824807d6
|
@ -355,7 +355,7 @@ func (r *reedSolomonFF16) reconstruct(shards [][]byte, recoverAll bool) error {
|
|||
}
|
||||
}
|
||||
if numberPresent == r.Shards || !recoverAll && dataPresent == r.DataShards {
|
||||
// Cool. All of the shards data data. We don't
|
||||
// Cool. All of the shards have data. We don't
|
||||
// need to do anything.
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -1096,7 +1096,7 @@ func (r *reedSolomon) reconstruct(shards [][]byte, dataOnly bool, required []boo
|
|||
}
|
||||
if numberPresent == r.Shards || dataOnly && dataPresent == r.DataShards ||
|
||||
required != nil && missingRequired == 0 {
|
||||
// Cool. All of the shards data data. We don't
|
||||
// Cool. All of the shards have data. We don't
|
||||
// need to do anything.
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue