Avoid PHP errors in the checkers drone step

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/31309/head
Côme Chilliet 2 years ago
parent 87115d8b1c
commit 6f37eac470
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A

@ -32,7 +32,7 @@ foreach ($directories as $dir) {
$it = new \RecursiveDirectoryIterator($dir);
foreach (new RecursiveIteratorIterator($it) as $file) {
if ($file->getExtension() === 'map') {
if (($file->getExtension() === 'map') || $file->isDir()) {
continue;
}
$content = file_get_contents($file->getPathname());

Loading…
Cancel
Save