remove parentheses from if statement to fix codestyle test

Signed-off-by: Adam <adam@csparker.co.uk>
This commit is contained in:
Adam 2022-10-03 13:17:48 +01:00
parent 24c899c91a
commit db4540089a
No known key found for this signature in database
GPG Key ID: F1AE8ECAA2679C06
1 changed files with 1 additions and 5 deletions

View File

@ -623,11 +623,7 @@ class Agent(BaseAuditModel):
policies = self.get_agent_policies()
for _, policy in policies.items():
if (
policy
and policy.active
and policy.winupdatepolicy.exists()
):
if policy and policy.active and policy.winupdatepolicy.exists():
patch_policy = policy.winupdatepolicy.first()
break