Refactoring

This commit is contained in:
Scott E. Graves
2019-06-08 00:14:40 -05:00
parent 446eff6b87
commit 465f2a609a

View File

@@ -135,8 +135,9 @@ class App extends IPCContainer {
installUpgrade = result => { installUpgrade = result => {
if (result.Success) { if (result.Success) {
const sha256 = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]].sha256; const info = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]];
const signature = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]].sig; const sha256 = info.sha256;
const signature = info.sig;
this.props.installUpgrade(result.Destination, sha256, signature, !!result.SkipVerification, this.onInstallUpgradeComplete); this.props.installUpgrade(result.Destination, sha256, signature, !!result.SkipVerification, this.onInstallUpgradeComplete);
} }
}; };