Skip to content

Commit eb5eb59

Browse files
committed
refactor: fix maintainability issue
1 parent 74a0d49 commit eb5eb59

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/services/network/network-facade.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,10 @@ export class NetworkFacade {
300300
}
301301

302302
hash = hashStream.getHash();
303+
const sortedParts = fileParts.sort((pA, pB) => pA.PartNumber - pB.PartNumber);
303304
return {
304305
hash: hash.toString('hex'),
305-
parts: fileParts.sort((pA, pB) => pA.PartNumber - pB.PartNumber),
306+
parts: sortedParts,
306307
};
307308
};
308309

0 commit comments

Comments
 (0)