Skip to content

Commit f5d4251

Browse files
committed
refactor: simplifies file type checks
1 parent 52ef504 commit f5d4251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files/DTO/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public function toArray(): array
403403

404404
if ($this->fileType->isRemote() && $this->url !== null) {
405405
$data['url'] = $this->url;
406-
} elseif (!$this->fileType->isRemote() && $this->base64Data !== null) {
406+
} elseif ($this->base64Data !== null) {
407407
$data['base64Data'] = $this->base64Data;
408408
}
409409

0 commit comments

Comments
 (0)