Skip to content

Commit 54ec57b

Browse files
authored
chore: remove contents from json deserializeStructure (#1179)
1 parent f39cce1 commit 54ec57b

File tree

192 files changed

+139506
-173440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+139506
-173440
lines changed

clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts

+222-272
Large diffs are not rendered by default.

clients/client-acm-pca/protocols/Aws_json1_1.ts

+412-504
Large diffs are not rendered by default.

clients/client-acm/protocols/Aws_json1_1.ts

+360-449
Large diffs are not rendered by default.

clients/client-alexa-for-business/protocols/Aws_json1_1.ts

+1,628-1,996
Large diffs are not rendered by default.

clients/client-amplify/protocols/Aws_restJson1_1.ts

+527-623
Large diffs are not rendered by default.

clients/client-api-gateway/protocols/Aws_restJson1_1.ts

+937-1,178
Large diffs are not rendered by default.

clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts

+10-11
Original file line numberDiff line numberDiff line change
@@ -461,18 +461,17 @@ const deserializeAws_restJson1_1Identity = (
461461
output: any,
462462
context: __SerdeContext
463463
): Identity => {
464-
let contents: any = {
464+
return {
465465
__type: "Identity",
466-
SourceIp: undefined,
467-
UserAgent: undefined
468-
};
469-
if (output.sourceIp !== undefined && output.sourceIp !== null) {
470-
contents.SourceIp = output.sourceIp;
471-
}
472-
if (output.userAgent !== undefined && output.userAgent !== null) {
473-
contents.UserAgent = output.userAgent;
474-
}
475-
return contents;
466+
SourceIp:
467+
output.sourceIp !== undefined && output.sourceIp !== null
468+
? output.sourceIp
469+
: undefined,
470+
UserAgent:
471+
output.userAgent !== undefined && output.userAgent !== null
472+
? output.userAgent
473+
: undefined
474+
} as any;
476475
};
477476

478477
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({

0 commit comments

Comments
 (0)