From a99446e290f038900b893e21362c6ff766c30f5e Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Mon, 6 Jul 2020 17:40:53 +0200 Subject: Minor linter fixes --- plumbing/filemode/filemode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plumbing/filemode') diff --git a/plumbing/filemode/filemode.go b/plumbing/filemode/filemode.go index 594984f..b848a97 100644 --- a/plumbing/filemode/filemode.go +++ b/plumbing/filemode/filemode.go @@ -118,7 +118,7 @@ func isSetSymLink(m os.FileMode) bool { func (m FileMode) Bytes() []byte { ret := make([]byte, 4) binary.LittleEndian.PutUint32(ret, uint32(m)) - return ret[:] + return ret } // IsMalformed returns if the FileMode should not appear in a git packfile, -- cgit