mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Cleanup: use destructuring assignment
For multiple return values use let [val1, val2, val3] = function(); Rather than: temp = function(); val1 = temp[0]; ... svn path=/trunk/; revision=149
This commit is contained in:
parent
8db3685e29
commit
ac6a5ef4af
1 changed files with 1 additions and 5 deletions
|
|
@ -65,11 +65,7 @@ DocDisplayItem.prototype = {
|
|||
// Opens a document represented by this display item.
|
||||
launch : function() {
|
||||
let appName = this._docInfo.last_application();
|
||||
let appData = this._docInfo.get_application_info(appName);
|
||||
let success = appData[0];
|
||||
let appExec = appData[1];
|
||||
let count = appData[2];
|
||||
let time = appData[3];
|
||||
let [success, appExec, count, time] = this._docInfo.get_application_info(appName);
|
||||
if (success) {
|
||||
log("Will open a document with the following command: " + appExec);
|
||||
// TODO: Change this once better support for creating GAppInfo is added to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue