Small fixes pass with upgraded staticcheck and nilaway #539
|
@ -13,7 +13,7 @@ type ChunkSpec []uint64
|
|||
// CreateChunkSpec given a full list of chunks with their downloaded status (true for downloaded, false otherwise)
|
||||
// derives a list of identifiers of chunks that have not been downloaded yet
|
||||
func CreateChunkSpec(progress []bool) ChunkSpec {
|
||||
chunks := []uint64{}
|
||||
chunks := ChunkSpec{}
|
||||
dan marked this conversation as resolved
Outdated
|
||||
for i, p := range progress {
|
||||
if !p {
|
||||
chunks = append(chunks, uint64(i))
|
||||
|
|
Loading…
Reference in New Issue
chunks := ChunkSpec{}