Monorepo for Tangled
0

Configure Feed

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

appview/db/pulls: fix PR existence check

empty slice/array with 0 length can not be nil, check with length
instead

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
committer
Tangled
date (Nov 1, 2025, 10:34 AM UTC) commit cff560de parent 1502dfc7 change-id ksunokxw
+1 -1
+1 -1
appview/db/pulls.go
··· 347 347 if err != nil { 348 348 return nil, err 349 349 } 350 - if pulls == nil { 350 + if len(pulls) == 0 { 351 351 return nil, sql.ErrNoRows 352 352 } 353 353