Changes to confirm with style requirements

Added braces to if condition to confirm with style requirements.