mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 23:40:05 +00:00
var switch, fmt, npe fix
This commit is contained in:
@@ -70,8 +70,13 @@ func toProtoCollectionoffsetSqlc(rows []db.GetCollectionByOffsetRow) *v1.Collect
|
||||
})
|
||||
}
|
||||
|
||||
name := "Empty Collection"
|
||||
if len(rows) > 0 {
|
||||
name = rows[0].Name.String
|
||||
}
|
||||
|
||||
return &v1.CollectionResponse{
|
||||
Name: rows[0].Name.String,
|
||||
Name: name,
|
||||
Items: int32(len(rows)),
|
||||
Songs: songs,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user