The edit https://stackoverflow.com/revisions/68075911/2 was approved by a majority of 2 against 1 rejecting review. None of the reviewers was the post author.
The reject reason, as specified by the rejecting reviewer, was:
The edit does not improve the quality of the post. Changes to the content are unnecessary or make the post more confusing.
I agree with that. The previous revision better matched the code in the question and has the same effect (for this code). The edit explanation ("allow line was in an incorrect location") is not correct if I understand correctly that it claims the previous revision did not have the desired outcome.
I don't understand why the other reviewers approved it. I'm hesitant to roll it back myself, because maybe they had a reason. Should I?