Skip to content

Commit

Permalink
chore(appsec): move common context to class
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 committed Oct 8, 2024
1 parent 73af80e commit 159929e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/appsec/_request_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, context_key: Text, environment_class: Type[AppsecEnvironment]
self.context_key: Text = context_key

def get(self):
core.get_item(self.context_key)
return core.get_item(self.context_key)

def in_context(self) -> bool:
return core.get_item(self.context_key) is not None
Expand Down

0 comments on commit 159929e

Please sign in to comment.