Skip to content

Commit 6c0315c

Browse files
committed
lint
1 parent 1f189e2 commit 6c0315c

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

order-routing/javascript/rankers/default/src/index.liquid

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ export default /**
1111
* @returns {FunctionResult}
1212
*/
1313
(input) => {
14-
let operations = input.fulfillmentGroups.map(group => {
15-
let rankings = group.inventoryLocations.map(inventoryLocation => ({
14+
const operations = input.fulfillmentGroups.map((group) => {
15+
const rankings = group.inventoryLocations.map((inventoryLocation) => ({
1616
locationId: inventoryLocation.location.id,
1717
rank: 0,
1818
}));
1919

2020
return {
2121
rank: {
2222
fulfillmentGroupId: group.id,
23-
rankings: rankings,
24-
}
23+
rankings,
24+
},
2525
};
2626
});
2727

28-
return { operations: operations };
28+
return {operations};
2929
};
3030
{%- elsif flavor contains "typescript" -%}
3131
import {
@@ -36,20 +36,22 @@ import {
3636
} from "../generated/api";
3737

3838
export default (input: InputQuery): FunctionResult => {
39-
let operations: Operation[] = input.fulfillmentGroups.map(group => {
40-
let rankings: RankedLocation[] = group.inventoryLocations.map(inventoryLocation => ({
41-
locationId: inventoryLocation.location.id,
42-
rank: 0,
43-
}));
39+
const operations: Operation[] = input.fulfillmentGroups.map((group) => {
40+
const rankings: RankedLocation[] = group.inventoryLocations.map(
41+
(inventoryLocation) => ({
42+
locationId: inventoryLocation.location.id,
43+
rank: 0,
44+
}),
45+
);
4446

4547
return {
4648
rank: {
4749
fulfillmentGroupId: group.id,
48-
rankings: rankings,
49-
}
50+
rankings,
51+
},
5052
};
5153
});
5254

53-
return { operations: operations };
55+
return {operations};
5456
};
5557
{%- endif -%}

0 commit comments

Comments
 (0)