mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-04 11:30:14 -05:00
PR feedback.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
namespace serial;
|
||||
|
||||
table Commit {
|
||||
// hash addr of the root value associated with the commit.
|
||||
root:[ubyte] (required);
|
||||
height:uint64;
|
||||
|
||||
|
||||
@@ -166,7 +166,6 @@ func (sm SerialMessage) WalkRefs(nbf *NomsBinFormat, cb RefCallback) error {
|
||||
func SerialCommitParentRefs(nbf *NomsBinFormat, sm SerialMessage) ([]Ref, error) {
|
||||
msg := serial.GetRootAsCommit([]byte(sm), 0)
|
||||
ret := make([]Ref, msg.ParentHeightsLength())
|
||||
hashes := make([]string, msg.ParentHeightsLength())
|
||||
addrs := msg.ParentAddrsBytes()
|
||||
for i := 0; i < msg.ParentHeightsLength(); i++ {
|
||||
addr := hash.New(addrs[:20])
|
||||
@@ -176,7 +175,6 @@ func SerialCommitParentRefs(nbf *NomsBinFormat, sm SerialMessage) ([]Ref, error)
|
||||
return nil, err
|
||||
}
|
||||
ret[i] = r
|
||||
hashes[i] = r.TargetHash().String()
|
||||
}
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user