Don't calculate permissions twice (#23917)
There is no need to calculate the permissions twice. Saves some is_dir and file_exists calls.
This commit is contained in:
parent
59080bef51
commit
4ddf9f98f1
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ abstract class Common implements Storage, ILockingStorage {
|
|||
}
|
||||
$data['etag'] = $this->getETag($path);
|
||||
$data['storage_mtime'] = $data['mtime'];
|
||||
$data['permissions'] = $this->getPermissions($path);
|
||||
$data['permissions'] = $permissions;
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue