used ternary operator for target size condition

Unnecessary use of conditions. code clean up.