refactor Route#ast to use or-equals and block, instead of return with a cond
Merge pull request #8779 from goshakkk/refactor-route-ast

Refactor Route#ast to use or-equals and block, instead of return with a check