Don't use := false

pull/19/head
maru 6 months ago
parent 7bfd9dfba7
commit 805ac408e8
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -44,7 +44,7 @@ func Get(uuid []byte, datatype, slot int) (any, error) {
return nil, fmt.Errorf("failed to fetch compensations: %s", err) return nil, fmt.Errorf("failed to fetch compensations: %s", err)
} }
needsUpdate := false var needsUpdate bool
for compensationType, amount := range compensations { for compensationType, amount := range compensations {
system.VoucherCounts[strconv.Itoa(compensationType)] += amount system.VoucherCounts[strconv.Itoa(compensationType)] += amount
if amount > 0 { if amount > 0 {

Loading…
Cancel
Save