Fixed code standards violation in BaseSprite

Use of no brace if-else.