prodypanda / MarkEnti

Unnecessary return await function found JS-0111
Performance
Major
5 months ago6 months old
Redundant use of await on a return value
131  } else if (!quantity) {
132    throw new Error('Quantity is required')
133  } else if (quantity <= 0) {
134    return await this.removeItemFromGuestCart(sessionId, itemId)135  }
136  let guestCart = await GuestCart.findOne({ sessionId })
137  if (!guestCart) {