I think that's understating the fix: there's a number of lines removed that, to be honest, I'd not feel confident hitting the delete key on until I had a deep understanding of what they were supposed to be doing.
The “deleted” lines were just changed indentation, plus a slight refactor to exit early on certain inverted conditions instead of checking conditions to enter the big if statement.