From bb91007b25b4393a43c3f91c0356b607a2fa623a Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 7 Jun 2014 11:59:46 -0700 Subject: Simplified code --- cryptography/hazmat/backends/openssl/backend.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 9cf92f9b..7746dafb 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -915,10 +915,7 @@ class Backend(object): ): return False - if not self.elliptic_curve_supported(curve): - return False - else: - return True + return self.elliptic_curve_supported(curve) def _supported_curves(self): if self._lib.Cryptography_HAS_EC != 1: -- cgit v1.2.3