Remove unused if/else clause, since it doesn't change anything
Merge pull request #9086 from mscherer/refactor_doc_script

Remove unused if/else clause, since it doesn't change anything