Tidy up else clauses based on our coding standards.

This commit is contained in:
László Monda
2018-01-08 05:41:36 +01:00
parent f0139c55ee
commit ae11c01725

View File

@@ -204,8 +204,7 @@ export class UserConfigEffects {
this.logService.debug('[UserConfigEffect] LOAD_USER_CONFIG_SUCCESS', {autoWriteUserConfig});
if (autoWriteUserConfig) {
return Observable.of(new SaveConfigurationAction());
}
else {
} else {
return Observable.empty();
}
});
@@ -219,8 +218,7 @@ export class UserConfigEffects {
if (info.filename.endsWith('.bin')) {
userConfig.fromBinary(UhkBuffer.fromArray(info.data));
}
else {
} else {
const buffer = new Buffer(info.data);
const json = buffer.toString();
userConfig.fromJsonObject(JSON.parse(json));