Increase readability of ternary statement in build method
Merge pull request #10275 from buddhamagnet/master

Increase readability of ternary statement in build method