our coding standard has { placed on same line as control statements...

Change this to:

if (settingsFile) {
...