[gnome-shell/mcatanzaro/#2276] Apply suggestion to js/ui/endSessionDialog.js
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/mcatanzaro/#2276] Apply suggestion to js/ui/endSessionDialog.js
- Date: Thu, 26 Mar 2020 14:40:50 +0000 (UTC)
commit b11f8884f6aceca644bdb9c766bf80d6aa513f47
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Mar 26 14:40:31 2020 +0000
Apply suggestion to js/ui/endSessionDialog.js
js/ui/endSessionDialog.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index 6692038761..ae881fe9ad 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -349,8 +349,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
// Use a different description when we are installing a system upgrade
// if the PackageKit proxy is available (i.e. PackageKit is available).
if (this._updateInfo && dialogContent.upgradeDescription) {
- let name = this._updateInfo.PreparedUpgrade['name'].deep_unpack();
- let version = this._updateInfo.PreparedUpgrade['version'].deep_unpack();
+ const { name, version } = this._updateInfo.PreparedUpgrade;
if (name != null && version != null)
description = dialogContent.upgradeDescription(name, version);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]