fix(rentergrowth): 移除冗余空值判断

This commit is contained in:
yml2213
2026-11-04 21:36:05 +08:00
parent 8caf5c8313
commit 12e9b6d0b2
@@ -288,7 +288,7 @@ func awardOrderSide(tx *gorm.DB, order *model.RentalOrder, cfg Config, role stri
setOrderPointsSnapshot(order, role, existing.BasisAmountCent, existing.PointsPerYuan, existing.PointsMultiplierBps, existing.Points, existing.CreatedAt)
return nil
}
if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
if !errors.Is(err, gorm.ErrRecordNotFound) {
return err
}
if role == "renter" {