1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Deleted non-relevant comments

This commit is contained in:
Eldad Fux 2020-12-30 13:07:14 +02:00
parent d0fd81ce91
commit df96ba2af7

View file

@ -489,15 +489,6 @@ class FunctionsV1
if(\count($list) > $max) {
Console::info('Starting containers cleanup');
// $sorted = [];
// foreach($list as $env) {
// $sorted[] = [
// 'name' => $env['name'],
// 'created' => (int)($env['appwrite-created'] ?? 0)
// ];
// }
\usort($list, function ($item1, $item2) {
return (int)($item1['appwrite-created'] ?? 0) <=> (int)($item2['appwrite-created'] ?? 0);
});