]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove unnecessary array_diff
authorChristopher Ng <chrng8@gmail.com>
Fri, 8 Apr 2022 18:02:49 +0000 (18:02 +0000)
committerChristopher Ng <chrng8@gmail.com>
Fri, 8 Apr 2022 18:02:49 +0000 (18:02 +0000)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
apps/settings/tests/UserMigration/AccountMigratorTest.php

index 74455bc91e14dd29cae5192fbf6a6d76891c56bc..051af68017c5b40b9f3005611ff7b29edd6b2ce3 100644 (file)
@@ -91,11 +91,7 @@ class AccountMigratorTest extends TestCase {
                                ];
                        },
                        array_filter(
-                               array_diff(
-                                       scandir(self::ASSETS_DIR),
-                                       // Exclude current and parent directories
-                                       ['.', '..'],
-                               ),
+                               scandir(self::ASSETS_DIR),
                                fn (string $filename) => pathinfo($filename, PATHINFO_EXTENSION) === 'json',
                        ),
                );