no need to check if colour count is 0, just bump.

This commit is contained in:
onyx-and-iris 2023-12-02 22:52:38 +00:00
parent 5b1ca25d3f
commit 4593c171d8

View File

@ -20,9 +20,7 @@ func powerForGame(data string) (int, error) {
if err != nil {
return 0, err
}
if counter[colour] == 0 {
counter[colour] = n
} else if counter[colour] < n {
if counter[colour] < n {
counter[colour] = n
}
}