mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 08:22:28 +01:00
Get rid of most remaining comprehensions.
This commit is contained in:
@@ -525,7 +525,8 @@ var CommandLine = Module("commandline", {
|
||||
if (storage.exists("history-" + name)) {
|
||||
let ary = storage.newArray("history-" + name, { store: true, privateData: true });
|
||||
|
||||
this._store.set(name, [v for ([k, v] of ary)]);
|
||||
this._store.set(name, Array.from(ary, ([key, val]) => val));
|
||||
|
||||
ary.delete();
|
||||
this._store.changed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user