mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 03:24:12 +01:00
Get rid of most remaining comprehensions.
This commit is contained in:
@@ -550,7 +550,7 @@ var File = Class("File", {
|
||||
if (!this.isDirectory())
|
||||
throw Error(_("io.eNotDir"));
|
||||
|
||||
let array = [e for (e of this.iterDirectory())];
|
||||
let array = Array.from(this.iterDirectory());
|
||||
if (sort)
|
||||
array.sort((a, b) => (b.isDirectory() - a.isDirectory() ||
|
||||
String.localeCompare(a.path, b.path)));
|
||||
|
||||
Reference in New Issue
Block a user