PR feedback.

This commit is contained in:
Aaron Son
2022-03-28 14:29:58 -07:00
parent 80bb5cf3ef
commit 4499e6dd1d
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -15,6 +15,7 @@
namespace serial;
table Commit {
// hash addr of the root value associated with the commit.
root:[ubyte] (required);
height:uint64;
-2
View File
@@ -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
}