mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-16 08:17:27 -08:00
Use === over ==
This commit is contained in:
parent
e8cad0df69
commit
da4c877ed8
|
@ -340,7 +340,7 @@ class ComponentsController extends Controller
|
||||||
|
|
||||||
// If the checked-in qty is exactly the same as the assigned_qty,
|
// If the checked-in qty is exactly the same as the assigned_qty,
|
||||||
// we can simply delete the associated components_assets record
|
// we can simply delete the associated components_assets record
|
||||||
if ($qty_remaining_in_checkout == 0) {
|
if ($qty_remaining_in_checkout === 0) {
|
||||||
DB::table('components_assets')->where('id', '=', $component_asset_id)->delete();
|
DB::table('components_assets')->where('id', '=', $component_asset_id)->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue