File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 88
99[options]
1010suppress_comment= \\(.\\|\n\\)*\\@flow-disable-next
11+ esproposal.optional_chaining=enable
Original file line number Diff line number Diff line change @@ -220,10 +220,8 @@ const filterSensitiveData = (
220220 protectedFields && protectedFields . forEach ( k => delete object [ k ] ) ;
221221
222222 // fields not requested by client (excluded),
223- //but were needed to apply protecttedFields
224- perms . protectedFields &&
225- perms . protectedFields . temporaryKeys &&
226- perms . protectedFields . temporaryKeys . forEach ( k => delete object [ k ] ) ;
223+ // but were needed to apply protectedFields
224+ perms ?. protectedFields ?. temporaryKeys ?. forEach ( k => delete object [ k ] ) ;
227225 }
228226
229227 for (const key in object) {
You can’t perform that action at this time.
0 commit comments