mirror of Walter-Sparrow / lunar-tear
0
fork

Configure Feed

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

Refactor grantParts function to remove unnecessary parts existence check

-6
-6
server/internal/questflow/rewards.go
··· 289 289 } 290 290 291 291 func (h *QuestHandler) grantParts(user *store.UserState, partsId int32, nowMillis int64) { 292 - for _, row := range user.Parts { 293 - if row.PartsId == partsId { 294 - return 295 - } 296 - } 297 - 298 292 var mainStatId int32 299 293 if partsDef, ok := h.PartsById[partsId]; ok { 300 294 mainStatId = h.DefaultPartsStatusMainByLotteryGroup[partsDef.PartsStatusMainLotteryGroupId]