mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code cleanup.
This commit is contained in:
@@ -161,14 +161,14 @@ class AttachmentRepository implements AttachmentRepositoryInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNoteText(Attachment $attachment): string
|
||||
public function getNoteText(Attachment $attachment): ?string
|
||||
{
|
||||
$note = $attachment->notes()->first();
|
||||
if (!is_null($note)) {
|
||||
return strval($note->text);
|
||||
}
|
||||
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user