Optimize conditional statements

Change-Id: I36ee83f552d528b467dcf2210d1920b6bb269cac
This commit is contained in:
Xuezhong Kang
2021-03-11 14:17:42 +08:00
parent 9a16e9114f
commit f2456aa27e
+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)