1
0
mirror of synced 2025-02-20 22:23:14 +03:00

#1072 DDC-3191 - minor performance optimization

This commit is contained in:
Marco Pivetta 2015-01-15 00:37:41 +01:00
parent aca719be41
commit e2acd74cb4

View File

@ -204,7 +204,8 @@ class FileLockRegion implements ConcurrentRegion
// The check below is necessary because on some platforms glob returns false
// when nothing matched (even though no errors occurred)
$filenames = glob(sprintf("%s/*.%s" , $this->directory, self::LOCK_EXTENSION));
if (is_array($filenames)) {
if ($filenames) {
foreach ($filenames as $filename) {
@unlink($filename);
}