We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5a5896 + 5020d9b commit 89a2c6cCopy full SHA for 89a2c6c
lib/Service/WorkspaceService.php
@@ -29,15 +29,13 @@ public function __construct(IL10N $l10n) {
29
30
public function getFile(Folder $folder): ?File {
31
foreach ($this->getSupportedFilenames() as $filename) {
32
- if ($folder->nodeExists($filename)) {
33
- try {
34
- $file = $folder->get($filename);
35
- if ($file instanceof File) {
36
- return $file;
37
- }
38
- } catch (NotFoundException|StorageInvalidException) {
39
- return null;
+ try {
+ $file = $folder->get($filename);
+ if ($file instanceof File) {
+ return $file;
40
}
+ } catch (NotFoundException|StorageInvalidException) {
+ continue;
41
42
43
return null;
0 commit comments