Avoid PHP errors in the checkers drone step

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/31314/head
Côme Chilliet 2 years ago committed by backportbot[bot]
parent 400c0bf304
commit eb0a10ae01

@ -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