Skip to content

Commit

Permalink
remove needless deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
noO0oOo0ob committed Sep 19, 2023
1 parent eb3dba0 commit b5104b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lyrebird/mock/blueprints/apis/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ def get(self, id):
# Import decoder for decoding the requested content
display_item = {}
if is_origin:
display_item.update(item)
display_item = deepcopy(item)
else:
application.encoders_decoders.decoder_handler(item, output=display_item)
if not no_decode:
display_item['request'] = deepcopy(display_item['request'])
for key in ('url', 'path', 'query'):
url_decode(display_item['request'], key)
return application.make_ok_response(data=display_item)
Expand Down

0 comments on commit b5104b1

Please sign in to comment.