[cleanup] reduce indentation
Merge pull request #3326 from 9rnsr/refactor_semantic

[cleanup] reduce indentation