Focus on the problem at hand and don't chase technical debt unless it impedes you. If not, open an issue, leave a TODO, etc. Nothing bothers me more than finding a bunch of changes in a pull request completely unrelated to the scope of the issue, and they're most often a time sink for the developer chasing them.