Skip to content

Commit

Permalink
Fix bug for filterSensitiveLog for Map inside Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed May 1, 2020
1 parent 74b5da0 commit f895273
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void writeFilterSensitiveLogForCollection(TypeScriptWriter writer, MemberShape c
);
} else if (memberShape instanceof MapShape) {
// Iterate over Object entries, and call reduce to repopulate map
writer.openBlock("item => Object.entries(item).reduce(", ")",
writer.openBlock("item => Object.entries(item).reduce(", "), {}",
() -> {
MemberShape mapMember = ((MapShape) memberShape).getValue();
writeFilterSensitiveLogForMap(writer, mapMember);
Expand Down

0 comments on commit f895273

Please sign in to comment.