diff options
| author | 2025-11-18 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-18 00:00:00 +0000 | |
| commit | 418ec0bd7c6c969b5dfaae0e064cbcf0a73f3aa7 (patch) | |
| tree | f78c07cb15b7eec36e5ba28efe791866fd23ba83 /loose.go | |
| parent | Add tests with race detector (diff) | |
| signature | ||
Remove redundant copy in loose.go
Diffstat (limited to 'loose.go')
| -rw-r--r-- | loose.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -74,8 +74,7 @@ func (repo *Repository) looseReadTyped(id Hash) (ObjectType, []byte, error) { // return ObjectTypeInvalid, nil, ErrInvalidObject // } - out := append([]byte(nil), body...) - return ty, out, nil + return ty, body, nil } func (repo *Repository) looseTypeSize(id Hash) (ObjectType, int64, error) { |
