Skip to content

Commit 48aceb0

Browse files
arthurf1969michaelbrewer
authored andcommitted
Fix middleware sample (aws-powertools#772)
1 parent dd9c3d6 commit 48aceb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/utilities/middleware_factory.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ You can also have your own keyword arguments after the mandatory arguments.
4747
# Obfuscate email before calling Lambda handler
4848
if fields:
4949
for field in fields:
50-
field = event.get(field, "")
5150
if field in event:
52-
event[field] = obfuscate(field)
51+
event[field] = obfuscate(event[field])
5352

5453
return handler(event, context)
5554

0 commit comments

Comments
 (0)