From 49577ad2bce5eb2da6eb637a5899438ff4ac3d8e Mon Sep 17 00:00:00 2001 From: georgeyiasemis Date: Thu, 18 Apr 2024 04:42:26 +0200 Subject: [PATCH] Code quality fixes --- direct/ssl/ssl.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/direct/ssl/ssl.py b/direct/ssl/ssl.py index 993f1796..2bb4e6eb 100644 --- a/direct/ssl/ssl.py +++ b/direct/ssl/ssl.py @@ -205,8 +205,7 @@ def _gaussian_split( if self.keep_acs: if acs_mask is None: raise ValueError("`keep_acs` is set to True but not received an input for `acs_mask`.") - else: - mask = mask & (~acs_mask) + mask = mask & (~acs_mask) with temp_seed(self.rng, seed): if seed is None: @@ -278,8 +277,7 @@ def _uniform_split( if self.keep_acs: if acs_mask is None: raise ValueError("`keep_acs` is set to True but not received an input for `acs_mask`.") - else: - mask = mask & (~acs_mask) + mask = mask & (~acs_mask) temp_mask = mask.cpu().clone()