# Changed question code - what to do?

As seen in This meta post, questions aren't supposed to change their code beyond copy/paste errors or minor syntax problems which aren't the subject of Code Review anyway.

It did happen here. How should I respond? I cannot find an appropriate flag for this. "Request for Moderator Intervention" feels like throwing a nuke at a cockroach - there is no objectionable content in itself.

Simple rollback may also not be appropriate. I suspect that the current code is the "real" code and the original was only a fragment. While this of course means that the current code should have originally been posted, it does now almost completely invalidate my answer.

So in short:

• I would say that it depends on whether the original question is on-topic or not. If it is (i.e. sufficient context, working code, ...) then your answer is valid as well, and the code must not be updated. – If the question is off-topic for some reason, then any answer is invalid and the question should be fixed. – Martin R Oct 29 '19 at 10:31
• It was on-topic, and valid code aside from not returning an obvious return value, which I think is minor enough to let slide. However, the current, more complete code is straight up a better question. (Basically, the code calling the original function is included.) – Gloweye Oct 29 '19 at 10:35