Skip to content

Commit aa26301

Browse files
authored
Apply suggestions from code review
1 parent bee5c6f commit aa26301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

repo_blob.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
package git
66

77
// CatFileBlob returns the blob corresponding to the given revision of the repository.
8-
func (repo *Repository) CatFileBlob(rev string) (*Blob, error) {
8+
func (r *Repository) CatFileBlob(rev string) (*Blob, error) {
99
rev, err := r.RevParse(rev, RevParseOptions{Timeout: opt.Timeout}) //nolint
1010
if err != nil {
1111
return nil, err
1212
}
1313

14-
typ, err := repo.CatFileType(rev)
14+
typ, err := r.CatFileType(rev)
1515
if err != nil {
1616
return nil, err
1717
}
@@ -26,7 +26,7 @@ func (repo *Repository) CatFileBlob(rev string) (*Blob, error) {
2626
typ: ObjectBlob,
2727
id: MustIDFromString(rev),
2828
parent: &Tree{
29-
repo: repo,
29+
repo: r,
3030
},
3131
},
3232
}, nil

0 commit comments

Comments
 (0)