mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
cleanup
This commit is contained in:
parent
d23f1a77ca
commit
8994f3e15e
|
@ -209,7 +209,7 @@ class ConsumablesController extends Controller
|
||||||
public function checkout(Request $request, $id)
|
public function checkout(Request $request, $id)
|
||||||
{
|
{
|
||||||
// Check if the consumable exists
|
// Check if the consumable exists
|
||||||
if (is_null($consumable = Consumable::find($id))) { // TODO -> message
|
if (is_null($consumable = Consumable::find($id))) {
|
||||||
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/consumables/message.does_not_exist')));
|
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/consumables/message.does_not_exist')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue