Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Fix ReloadAccounts if accounts are removed #24

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

comstud
Copy link
Collaborator

@comstud comstud commented Oct 14, 2023

The logic handling the removal of accounts will skip checking the next account whenever one is being removed from the slice. If there's 2 in a row to remove, the 2nd one won't get removed. This fixes it.

This also removes duplicate err checking in LoadKojiAreas().

The logic handling the removal of accounts will skip
checking the next account whenever one is being removed
from the slice. If there's 2 in a row to remove, the
2nd one won't get removed. This fixes it.

This also removes duplicate err checking in LoadKojiAreas().
@Fabio1988
Copy link
Collaborator

Really good catch, thanks 👍

@Fabio1988 Fabio1988 merged commit f120afc into main Oct 14, 2023
2 checks passed
@Fabio1988 Fabio1988 deleted the comstud/reload-acct-fix branch October 14, 2023 07:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants