Skip to content

Commit 252ad8e

Browse files
committed
chore(codegen): update reducer codegen after rebase
1 parent 1e0405f commit 252ad8e

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

clients/client-ssmsap/src/protocols/Aws_restJson1.ts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,10 +1338,8 @@ const serializeAws_restJson1TagMap = (input: Record<string, string>, context: __
13381338
if (value === null) {
13391339
return acc;
13401340
}
1341-
return {
1342-
...acc,
1343-
[key]: value,
1344-
};
1341+
acc[key] = value;
1342+
return acc;
13451343
}, {});
13461344
};
13471345

@@ -1570,12 +1568,11 @@ const deserializeAws_restJson1OperationIdList = (output: any, context: __SerdeCo
15701568
const deserializeAws_restJson1OperationProperties = (output: any, context: __SerdeContext): Record<string, string> => {
15711569
return Object.entries(output).reduce((acc: Record<string, string>, [key, value]: [string, any]) => {
15721570
if (value === null) {
1573-
return { ...acc, [key]: null as any };
1571+
acc[key] = null as any;
1572+
return acc;
15741573
}
1575-
return {
1576-
...acc,
1577-
[key]: __expectString(value) as any,
1578-
};
1574+
acc[key] = __expectString(value) as any;
1575+
return acc;
15791576
}, {});
15801577
};
15811578

@@ -1584,10 +1581,8 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): R
15841581
if (value === null) {
15851582
return acc;
15861583
}
1587-
return {
1588-
...acc,
1589-
[key]: __expectString(value) as any,
1590-
};
1584+
acc[key] = __expectString(value) as any;
1585+
return acc;
15911586
}, {});
15921587
};
15931588

0 commit comments

Comments
 (0)