mirror of
https://github.com/codedread/bitjs
synced 2025-10-05 18:34:17 +02:00
Whitespace and a couple arrow functions
This commit is contained in:
parent
0d27e9d9c0
commit
d2a4329893
5 changed files with 302 additions and 317 deletions
|
@ -135,9 +135,7 @@ const untar = function(arrayBuffer) {
|
|||
totalFilesInArchive = localFiles.length;
|
||||
|
||||
// got all local files, now sort them
|
||||
localFiles.sort(function(a,b) {
|
||||
return a.filename > b.filename ? 1 : -1;
|
||||
});
|
||||
localFiles.sort((a,b) => a.filename > b.filename ? 1 : -1);
|
||||
|
||||
// report # files and total length
|
||||
if (localFiles.length > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue