mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Code clean up.
This commit is contained in:
@@ -108,7 +108,6 @@ class AttachmentController extends Controller
|
||||
*/
|
||||
public function download(AttachmentRepositoryInterface $repository, Attachment $attachment)
|
||||
{
|
||||
|
||||
if ($repository->exists($attachment)) {
|
||||
$content = $repository->getContent($attachment);
|
||||
$quoted = sprintf('"%s"', addcslashes(basename($attachment->filename), '"\\'));
|
||||
@@ -198,7 +197,5 @@ class AttachmentController extends Controller
|
||||
|
||||
// redirect to previous URL.
|
||||
return redirect($this->getPreviousUri('attachments.edit.uri'));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user