Removes code duplication (code climate)

No gain but it's "better": https://codeclimate.com/github/Mogztter/asciidoctor/compare/code-climate
Ruby supports implicit returns, i.e. the value of the last expression in a block/statement is what will be returned. You should not write explicit `return` keyword when it’s the last statement.