mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Various code cleanup
This commit is contained in:
@@ -54,6 +54,8 @@ class JournalAPIRepository implements JournalAPIRepositoryInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO pretty sure method duplicated.
|
||||
*
|
||||
* Return all attachments for journal.
|
||||
*
|
||||
* @param TransactionJournal $journal
|
||||
@@ -71,7 +73,7 @@ class JournalAPIRepository implements JournalAPIRepositoryInterface
|
||||
static function (Attachment $attachment) use ($disk) {
|
||||
$notes = $attachment->notes()->first();
|
||||
$attachment->file_exists = $disk->exists($attachment->fileName());
|
||||
$attachment->notes = $notes ? $notes->text : '';
|
||||
$attachment->notes = $notes ? $notes->text : ''; // TODO should not set notes like this.
|
||||
|
||||
return $attachment;
|
||||
}
|
||||
|
Reference in New Issue
Block a user