Мелкий рефакторинг
This commit is contained in:
@@ -147,7 +147,7 @@ class JembaReaderStorage {
|
|||||||
try {
|
try {
|
||||||
const sorted = [];
|
const sorted = [];
|
||||||
for (const [id, obj] of this.cacheMap)
|
for (const [id, obj] of this.cacheMap)
|
||||||
sorted.push(Object.assign({id}, obj));
|
sorted.push({id, time: obj.time});
|
||||||
|
|
||||||
sorted.sort((a, b) => b.time - a.time);
|
sorted.sort((a, b) => b.time - a.time);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user