Skip to content

Commit

Permalink
fix: Sider, Linter
Browse files Browse the repository at this point in the history
- Moved return to next line
- Space between function import and body
  • Loading branch information
marination committed Oct 12, 2021
1 parent d824a90 commit a780f78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/shopping_cart/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ def set_cart_count(login_manager):
# make sure user is already a customer
# before trying to set cart count
user_is_customer = is_customer()
if not user_is_customer: return
if not user_is_customer:
return

if show_cart_count():
from erpnext.shopping_cart.cart import set_cart_count

# set_cart_count will try to fetch existing cart quotation
# or create one if non existent (and create a customer too)
# cart count is calculated from this quotation's items
Expand Down

0 comments on commit a780f78

Please sign in to comment.