Skip to content

Commit 36ce414

Browse files
committed
tagRecord.initialize(): call r.maybeFinalize()
Instead of calling `g.finalizeTagSize()`, call `tagRecord.maybeFinalize()`, which also takes care of informing listeners that the size is ready.
1 parent ecfdc3d commit 36ce414

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sizes/graph.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,7 @@ func (r *tagRecord) initialize(g *Graph, oid git.OID, tag *git.Tag) {
786786
default:
787787
}
788788

789-
if r.pending == 0 {
790-
g.finalizeTagSize(r.oid, r.size, r.objectSize)
791-
}
789+
r.maybeFinalize(g)
792790
}
793791

794792
func (r *tagRecord) maybeFinalize(g *Graph) {

0 commit comments

Comments
 (0)