diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 17:40:53 +0200 |
---|---|---|
committer | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 17:40:53 +0200 |
commit | a99446e290f038900b893e21362c6ff766c30f5e (patch) | |
tree | 8c9eca0445a0bf31ef57840c3950f923d5dc27b8 /plumbing/format/index/decoder.go | |
parent | a9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (diff) | |
download | go-git-a99446e290f038900b893e21362c6ff766c30f5e.tar.gz |
Minor linter fixes
Diffstat (limited to 'plumbing/format/index/decoder.go')
-rw-r--r-- | plumbing/format/index/decoder.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/index/decoder.go b/plumbing/format/index/decoder.go index d341d59..036b636 100644 --- a/plumbing/format/index/decoder.go +++ b/plumbing/format/index/decoder.go @@ -188,7 +188,7 @@ func (d *Decoder) doReadEntryNameV4() (string, error) { func (d *Decoder) doReadEntryName(len uint16) (string, error) { name := make([]byte, len) - _, err := io.ReadFull(d.r, name[:]) + _, err := io.ReadFull(d.r, name) return string(name), err } |