Skip to content
Prev Previous commit
Next Next commit
fix: Avoid double checking the file
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 29, 2024
commit de7ff749605d0dbe034ab213dd0aaa11da10661b
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions lib/Service/TemplateFieldService.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,6 @@ public function fillFields(Node|int $file, array $fields = [], ?string $destinat

if (is_int($file)) {
$file = $this->rootFolder->getFirstNodeById($file);

if (!$file) {
$e = new NotFoundException();
$this->logger->error($e->getMessage());

throw $e;
}
}

if (!$file || !$file instanceof File) {
Expand Down