1
0
Fork 0
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:
codedread 2017-02-21 12:05:03 -08:00
parent 0d27e9d9c0
commit d2a4329893
5 changed files with 302 additions and 317 deletions

View file

@ -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) {