Skip to content

Commit

Permalink
Fix E721 do not compare types
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Mar 29, 2024
1 parent d18fb02 commit a6a0bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion st2common/st2common/services/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,6 @@ def is_action_execution_under_action_chain_context(liveaction):


def get_requester(requester):
if type(requester) == UserDB:
if isinstance(requester, UserDB):
return requester["name"]
return requester

0 comments on commit a6a0bfd

Please sign in to comment.