It seems to remove useless whitespace (e.g. trailing whitespace on lines and entire files).

(Note that this doesn't remove the very last `\n`, just `s/\n+$/\n/` if you'll excuse the regex.)