Fast implementation of Git in pure Go codeberg.org/lindenii/furgit
git go
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

format/pack/ingest: Handle error from crc.Write just in case

Although, yeah that won't happen

Runxi Yu d667411e d2022eea

+5 -1
+5 -1
format/pack/ingest/thin_append.go
··· 29 29 headerLenInt64 := int64(len(header)) 30 30 section := &fileSectionWriter{file: state.packFile, off: startInt64 + headerLenInt64} 31 31 crc := crc32.NewIEEE() 32 - _, _ = crc.Write(header) 32 + _, err = crc.Write(header) 33 + if err != nil { 34 + return 0, err 35 + } 36 + 33 37 counting := &countingWriter{dst: section} 34 38 35 39 zw := zlib.NewWriter(io.MultiWriter(counting, crc))