Loading
Fix redundant flag removal on user_cancel_reassign
user_cancel_reassign deletes the account (see core's _user_cancel()), which already triggers hook_user_predelete() and flag_user_predelete(). The explicit call in flag_user_cancel() for that method was therefore running userFlagRemoval() twice per cancellation, doubling queue writes for the batched removal added in the prior commit.
Also fixes a stray comment typo and simplifies an unnecessary array_combine()/array|int type hint left over from that change.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com