Skip to content

Commit 000917d

Browse files
committed
fix: linter fixes
Signed-off-by: Sujith <[email protected]>
1 parent a0804b5 commit 000917d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/api-plugin-fulfillment-method-shipping-flat-rate/src/resolvers/Mutation/createFlatRateFulfillmentRestriction.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ export default async function createFlatRateFulfillmentRestriction(parentResult,
2222

2323
let decodedMethodIds = [];
2424
if (restriction.methodIds && Array.isArray(restriction.methodIds)) {
25-
decodedMethodIds = restriction.methodIds.map((methodId) => {
26-
return isOpaqueId(methodId) ? decodeFulfillmentMethodOpaqueId(methodId) : methodId;
27-
});
25+
decodedMethodIds = restriction.methodIds.map((methodId) => (isOpaqueId(methodId) ? decodeFulfillmentMethodOpaqueId(methodId) : methodId));
2826
}
2927

3028
restriction.methodIds = decodedMethodIds;

packages/api-plugin-fulfillment-method-shipping-flat-rate/src/resolvers/Mutation/updateFlatRateFulfillmentRestriction.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export default async function updateFlatRateFulfillmentRestriction(parentResult,
2828

2929
let decodedMethodIds = [];
3030
if (restriction.methodIds && Array.isArray(restriction.methodIds)) {
31-
decodedMethodIds = restriction.methodIds.map((methodId) => {
32-
return isOpaqueId(methodId) ? decodeFulfillmentMethodOpaqueId(methodId) : methodId;
33-
});
31+
decodedMethodIds = restriction.methodIds.map((methodId) => (isOpaqueId(methodId) ? decodeFulfillmentMethodOpaqueId(methodId) : methodId));
3432
}
3533

3634
restriction.methodIds = decodedMethodIds;

0 commit comments

Comments
 (0)