cleanup: Remove some unhelpful unused variables in destructuring
We aren't using them, and they don't add much in terms of clarity, so drop them to fix a couple of eslint errors. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/627
This commit is contained in:
@ -114,9 +114,9 @@ function _loadMode(file, info) {
|
||||
if (_modes.hasOwnProperty(modeName))
|
||||
return;
|
||||
|
||||
let fileContent, success, tag, newMode;
|
||||
let fileContent, success, newMode;
|
||||
try {
|
||||
[success, fileContent, tag] = file.load_contents(null);
|
||||
[success, fileContent] = file.load_contents(null);
|
||||
if (fileContent instanceof Uint8Array)
|
||||
fileContent = imports.byteArray.toString(fileContent);
|
||||
newMode = JSON.parse(fileContent);
|
||||
|
Reference in New Issue
Block a user