Merge "Optimize conditional statements"

This commit is contained in:
Zuul
2021-03-16 14:26:29 +00:00
committed by Gerrit Code Review
+1 -2
View File
@@ -189,8 +189,7 @@ class SimpleCryptoPlugin(c.CryptoPluginBase):
mode=None):
if type_enum == c.PluginSupportTypes.ENCRYPT_DECRYPT:
return True
if type_enum == c.PluginSupportTypes.SYMMETRIC_KEY_GENERATION:
elif type_enum == c.PluginSupportTypes.SYMMETRIC_KEY_GENERATION:
return self._is_algorithm_supported(algorithm,
bit_length,
mode)