repoformat: format_repo.sh.

This commit is contained in:
Aaron Son
2021-08-06 14:42:11 -07:00
parent be7fc91706
commit 880f1b7101
2 changed files with 15 additions and 15 deletions

View File

@@ -159,19 +159,19 @@ func (c *Commit) Height() (uint64, error) {
}
func maxChunkHeight(v types.Value, nbf *types.NomsBinFormat) (max uint64, err error) {
err = v.WalkRefs(nbf, func(r types.Ref) error {
if height := r.Height(); height > max {
max = height
}
err = v.WalkRefs(nbf, func(r types.Ref) error {
if height := r.Height(); height > max {
max = height
}
return nil
})
return nil
})
if err != nil {
return 0, err
}
if err != nil {
return 0, err
}
return max, nil
return max, nil
}
func (c *Commit) getParent(ctx context.Context, idx int) (*types.Struct, error) {

View File

@@ -44,14 +44,14 @@ func (q *q) NumVisiblePending() int {
}
func (q *q) Push(x interface{}) {
q.pending = append(q.pending, x.(*c))
q.pending = append(q.pending, x.(*c))
}
func (q *q) Pop() interface{} {
old := q.pending
ret := old[len(old)-1]
q.pending = old[:len(old)-1]
return ret
old := q.pending
ret := old[len(old)-1]
q.pending = old[:len(old)-1]
return ret
}
func (q *q) Len() int {