Monorepo for Tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

knotserver: fix ingesting empty pulls

Signed-off-by: oppiliappan <me@oppi.li>

authored by

oppiliappan and committed by
Seongmin Lee
d41fb1ea bfbc936c

+4
+4
knotserver/ingester.go
··· 181 181 return nil, fmt.Errorf("failed to resolve PR owner handle: %w", err) 182 182 } 183 183 184 + if len(record.Rounds) == 0 { 185 + return nil, fmt.Errorf("failed to fetch latest submission, no rounds in record") 186 + } 187 + 184 188 roundNumber := len(record.Rounds) - 1 185 189 round := record.Rounds[roundNumber] 186 190