aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/filemode
diff options
context:
space:
mode:
authorOleg Kovalov <iamolegkovalov@gmail.com>2020-07-06 17:40:53 +0200
committerOleg Kovalov <iamolegkovalov@gmail.com>2020-07-06 17:40:53 +0200
commita99446e290f038900b893e21362c6ff766c30f5e (patch)
tree8c9eca0445a0bf31ef57840c3950f923d5dc27b8 /plumbing/filemode
parenta9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (diff)
downloadgo-git-a99446e290f038900b893e21362c6ff766c30f5e.tar.gz
Minor linter fixes
Diffstat (limited to 'plumbing/filemode')
-rw-r--r--plumbing/filemode/filemode.go2
1 files changed, 1 insertions, 1 deletions
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,