made the code a bit simpler

This commit is contained in:
ArnabChatterjee20k
2025-05-13 17:40:04 +05:30
parent 41d7114e97
commit f8fdecaa2d
+1 -3
View File
@@ -2901,9 +2901,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/indexes')
$lengths[$i] ??= null;
if ($attributeArray === true) {
if ($lengths[$i] === null) {
$lengths[$i] = Database::ARRAY_INDEX_LENGTH;
}
$lengths[$i] ??= Database::ARRAY_INDEX_LENGTH;
$orders[$i] = null;
}
}