Skip to content

Commit

Permalink
packfile: use consistent receiver name for ObjectType.NonDelta
Browse files Browse the repository at this point in the history
  • Loading branch information
zombiezen committed Jan 26, 2021
1 parent 6ee518f commit 72f87f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packfile/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ func (typ ObjectType) isValid() bool {

// NonDelta returns the Git object type that the packfile object type represents
// or the empty string if the type represents a deltified object.
func (t ObjectType) NonDelta() object.Type {
switch t {
func (typ ObjectType) NonDelta() object.Type {
switch typ {
case Commit:
return object.TypeCommit
case Tree:
Expand Down

0 comments on commit 72f87f9

Please sign in to comment.