mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Don't try to delete the file if there is no log entry
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3821c4d372
commit
a6b3aa5f04
|
@ -123,7 +123,7 @@ class AssetFilesController extends Controller
|
|||
$log->delete();
|
||||
return redirect()->back()->with('success', trans('admin/hardware/message.deletefile.success'));
|
||||
}
|
||||
$log->delete();
|
||||
|
||||
return redirect()->back()
|
||||
->with('success', trans('admin/hardware/message.deletefile.success'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue