Skip to content

Commit bbd3473

Browse files
committed
chore: codegen to remove contents array
1 parent aa5af54 commit bbd3473

File tree

24 files changed

+2631
-4686
lines changed

24 files changed

+2631
-4686
lines changed

clients/client-auto-scaling/protocols/Aws_query.ts

Lines changed: 93 additions & 168 deletions
Large diffs are not rendered by default.

clients/client-cloudformation/protocols/Aws_query.ts

Lines changed: 114 additions & 196 deletions
Large diffs are not rendered by default.

clients/client-cloudfront/protocols/Aws_restXml.ts

Lines changed: 96 additions & 175 deletions
Large diffs are not rendered by default.

clients/client-cloudsearch/protocols/Aws_query.ts

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4380,11 +4380,9 @@ const deserializeAws_queryAnalysisSchemeStatusList = (
43804380
output: any,
43814381
context: __SerdeContext
43824382
): AnalysisSchemeStatus[] => {
4383-
const contents: any = [];
4384-
(output || []).map((entry: any) => {
4385-
contents.push(deserializeAws_queryAnalysisSchemeStatus(entry, context));
4386-
});
4387-
return contents;
4383+
return (output || []).map((entry: any) =>
4384+
deserializeAws_queryAnalysisSchemeStatus(entry, context)
4385+
);
43884386
};
43894387

43904388
const deserializeAws_queryAvailabilityOptionsStatus = (
@@ -5129,11 +5127,9 @@ const deserializeAws_queryDomainStatusList = (
51295127
output: any,
51305128
context: __SerdeContext
51315129
): DomainStatus[] => {
5132-
const contents: any = [];
5133-
(output || []).map((entry: any) => {
5134-
contents.push(deserializeAws_queryDomainStatus(entry, context));
5135-
});
5136-
return contents;
5130+
return (output || []).map((entry: any) =>
5131+
deserializeAws_queryDomainStatus(entry, context)
5132+
);
51375133
};
51385134

51395135
const deserializeAws_queryDoubleArrayOptions = (
@@ -5287,22 +5283,18 @@ const deserializeAws_queryExpressionStatusList = (
52875283
output: any,
52885284
context: __SerdeContext
52895285
): ExpressionStatus[] => {
5290-
const contents: any = [];
5291-
(output || []).map((entry: any) => {
5292-
contents.push(deserializeAws_queryExpressionStatus(entry, context));
5293-
});
5294-
return contents;
5286+
return (output || []).map((entry: any) =>
5287+
deserializeAws_queryExpressionStatus(entry, context)
5288+
);
52955289
};
52965290

52975291
const deserializeAws_queryFieldNameList = (
52985292
output: any,
52995293
context: __SerdeContext
53005294
): string[] => {
5301-
const contents: any = [];
5302-
(output || []).map((entry: any) => {
5303-
contents.push(entry["#text"] !== undefined ? entry["#text"] : entry);
5304-
});
5305-
return contents;
5295+
return (output || []).map((entry: any) =>
5296+
entry["#text"] !== undefined ? entry["#text"] : entry
5297+
);
53065298
};
53075299

53085300
const deserializeAws_queryIndexDocumentsResponse = (
@@ -5457,11 +5449,9 @@ const deserializeAws_queryIndexFieldStatusList = (
54575449
output: any,
54585450
context: __SerdeContext
54595451
): IndexFieldStatus[] => {
5460-
const contents: any = [];
5461-
(output || []).map((entry: any) => {
5462-
contents.push(deserializeAws_queryIndexFieldStatus(entry, context));
5463-
});
5464-
return contents;
5452+
return (output || []).map((entry: any) =>
5453+
deserializeAws_queryIndexFieldStatus(entry, context)
5454+
);
54655455
};
54665456

54675457
const deserializeAws_queryIntArrayOptions = (
@@ -6023,11 +6013,9 @@ const deserializeAws_querySuggesterStatusList = (
60236013
output: any,
60246014
context: __SerdeContext
60256015
): SuggesterStatus[] => {
6026-
const contents: any = [];
6027-
(output || []).map((entry: any) => {
6028-
contents.push(deserializeAws_querySuggesterStatus(entry, context));
6029-
});
6030-
return contents;
6016+
return (output || []).map((entry: any) =>
6017+
deserializeAws_querySuggesterStatus(entry, context)
6018+
);
60316019
};
60326020

60336021
const deserializeAws_queryTextArrayOptions = (

0 commit comments

Comments
 (0)