Page 1 of 1

duplicate code in CartController

Posted: Wed May 21, 2014 2:38 am
by prabhat.kataria
I was going through the code of "com.mycompany.controoler.cart.CartController.java" and inside "addJson" method I can see if condition is written 2 times. Cannot make out why same code is written twice. Can somebody throw some light on it?

The class can be seen at https://github.com/BroadleafCommerce/DemoSite/blob/master/site/src/main/java/com/mycompany/controller/cart/CartController.java

Re: duplicate code in CartController

Posted: Wed May 21, 2014 12:07 pm
by phillipuniverse
Probably a bad merge. I would remove the first one. We'll make sure it gets removed here on our end.

Thanks for the report!

Re: duplicate code in CartController

Posted: Thu May 22, 2014 12:00 am
by prabhat.kataria
You are welcome.