Refactoring
This commit is contained in:
@@ -135,8 +135,9 @@ class App extends IPCContainer {
|
||||
|
||||
installUpgrade = result => {
|
||||
if (result.Success) {
|
||||
const sha256 = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]].sha256;
|
||||
const signature = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]].sig;
|
||||
const info = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]];
|
||||
const sha256 = info.sha256;
|
||||
const signature = info.sig;
|
||||
this.props.installUpgrade(result.Destination, sha256, signature, !!result.SkipVerification, this.onInstallUpgradeComplete);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user