Authored by htoooth

refactor

@@ -6,8 +6,4 @@ @@ -6,8 +6,4 @@
6 6
7 const favoriteProductAPI = require('./favorite-product-api'); 7 const favoriteProductAPI = require('./favorite-product-api');
8 8
9 -module.exports.isFavoriteAsync = favoriteProductAPI.isFavoriteAsync;  
10 -  
11 -module.exports.createAsync = favoriteProductAPI.createAsync;  
12 -  
13 -module.exports.deleteAsync = favoriteProductAPI.deleteAsync; 9 +module.exports = favoriteProductAPI;
@@ -15,29 +15,29 @@ const getHomeChannelNav = (channel) => { @@ -15,29 +15,29 @@ const getHomeChannelNav = (channel) => {
15 15
16 switch (channel) { 16 switch (channel) {
17 case 'boys': 17 case 'boys':
18 - {  
19 - home = helpers.urlFormat('', '', 'default');  
20 - break;  
21 - } 18 + {
  19 + home = helpers.urlFormat('', '', 'default');
  20 + break;
  21 + }
22 case 'girls': 22 case 'girls':
23 - {  
24 - home = helpers.urlFormat('/woman', '', 'new');  
25 - break;  
26 - } 23 + {
  24 + home = helpers.urlFormat('/woman', '', 'new');
  25 + break;
  26 + }
27 case 'lifestyle': 27 case 'lifestyle':
28 - {  
29 - home = helpers.urlFormat('/lifestyle', '', 'new');  
30 - break;  
31 - } 28 + {
  29 + home = helpers.urlFormat('/lifestyle', '', 'new');
  30 + break;
  31 + }
32 case 'kids': 32 case 'kids':
33 - {  
34 - home = helpers.urlFormat('/kids', '', 'new');  
35 - break;  
36 - } 33 + {
  34 + home = helpers.urlFormat('/kids', '', 'new');
  35 + break;
  36 + }
37 default: 37 default:
38 - {  
39 - home = helpers.urlFormat('', '', 'default');  
40 - } 38 + {
  39 + home = helpers.urlFormat('', '', 'default');
  40 + }
41 41
42 } 42 }
43 43