Delete not necessary conditional

This commit is contained in:
Ivan Nieto Vivanco 2022-09-20 19:02:01 -05:00
parent 5a1062f0f4
commit c0f83a7927

View file

@ -75,11 +75,6 @@ class LicenseCheckoutController extends Controller
{
$licenseSeat = LicenseSeat::find($seatId) ?? $license->freeSeat();
if(is_null($licenseSeat)){
throw new \Illuminate\Http\Exceptions\HttpResponseException(redirect()->route('licenses.index')->with('error', 'This Seat is not available for checkout.'));
}
if (! $licenseSeat) {
if ($seatId) {
throw new \Illuminate\Http\Exceptions\HttpResponseException(redirect()->route('licenses.index')->with('error', 'This Seat is not available for checkout.'));