aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile/decoder.go
diff options
context:
space:
mode:
authorMiguel Molina <miguel@erizocosmi.co>2018-08-10 12:33:56 +0200
committerMiguel Molina <miguel@erizocosmi.co>2018-08-10 12:33:56 +0200
commit8d75d239e93474e4287870e4e5143da14e2c360d (patch)
treec93f6da98b9d51a53a3c6a49135947f4e6b65bc6 /plumbing/format/idxfile/decoder.go
parentb944bc45af20b7362786f014fba1bbd72ba7fc76 (diff)
downloadgo-git-8d75d239e93474e4287870e4e5143da14e2c360d.tar.gz
plumbing: idxfile, Crc32 to CRC32 and return ok from findHashIndex
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
Diffstat (limited to 'plumbing/format/idxfile/decoder.go')
-rw-r--r--plumbing/format/idxfile/decoder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/format/idxfile/decoder.go b/plumbing/format/idxfile/decoder.go
index 25ff88e..5b92782 100644
--- a/plumbing/format/idxfile/decoder.go
+++ b/plumbing/format/idxfile/decoder.go
@@ -124,7 +124,7 @@ func readObjectNames(idx *MemoryIndex, r io.Reader) error {
idx.Names = append(idx.Names, bin)
idx.Offset32 = append(idx.Offset32, make([]byte, buckets*4))
- idx.Crc32 = append(idx.Crc32, make([]byte, buckets*4))
+ idx.CRC32 = append(idx.CRC32, make([]byte, buckets*4))
}
return nil
@@ -133,7 +133,7 @@ func readObjectNames(idx *MemoryIndex, r io.Reader) error {
func readCRC32(idx *MemoryIndex, r io.Reader) error {
for k := 0; k < fanout; k++ {
if pos := idx.FanoutMapping[k]; pos != noMapping {
- if _, err := io.ReadFull(r, idx.Crc32[pos]); err != nil {
+ if _, err := io.ReadFull(r, idx.CRC32[pos]); err != nil {
return err
}
}