Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Editing your own answer shows a guide that says "always respect the original author". Simple as that. Don't know what else to say about that.
This note comes up when anyone edits any answer.
Adding a check in to see if the editor is the OP just adds complexity, and is unneeded.