Don't use := false

This commit is contained in:
maru 2024-05-21 17:49:20 -04:00
parent 7bfd9dfba7
commit 805ac408e8
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

View File

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