Skip to content

Commit

Permalink
removing redundent get statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketmehta28 committed Jan 21, 2022
1 parent 39ee6aa commit c1ce2d6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@ def trace_tween(request):
else:
activation.__exit__(None, None, None)

if request.environ.get(_ENVIRON_TOKEN, None) is not None:
context.detach(request.environ.get(_ENVIRON_TOKEN))
env_token = request.environ.get(_ENVIRON_TOKEN, None)
if env_token is not None:
context.detach(env_token)

return response

Expand Down

0 comments on commit c1ce2d6

Please sign in to comment.