mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 22:03:01 +00:00
Cleanup with ruff check (#963)
* Implement improvements suggested by ruff check. * Add ruff check to CI. * Add changelog fragment.
This commit is contained in:
@@ -244,9 +244,9 @@ class X509CertificateConvertModule(OpenSSLObject):
|
||||
return True
|
||||
if self.input != self.dest_content:
|
||||
return True
|
||||
if self.format == "pem" and self.dest_content_pem_type != self.wanted_pem_type:
|
||||
return True
|
||||
return False
|
||||
return bool(
|
||||
self.format == "pem" and self.dest_content_pem_type != self.wanted_pem_type
|
||||
)
|
||||
|
||||
def get_dest_certificate(self) -> bytes:
|
||||
if self.format == "der":
|
||||
|
||||
Reference in New Issue
Block a user