Small fixes pass with upgraded staticcheck and nilaway #539

Merged
sarah merged 2 commits from fixups into master 2024-01-02 20:46:10 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 34957f809b - Show all commits

View File

@ -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{}
for i, p := range progress {
if !p {
chunks = append(chunks, uint64(i))