Skip to content

Commit

Permalink
Don't use := false
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed May 21, 2024
1 parent 7bfd9df commit 805ac40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/savedata/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 805ac40

Please sign in to comment.