style(plugin): apply ruff formatting to certification.py

This commit is contained in:
TyperBody
2026-09-25 20:37:57 +08:00
parent c76fd2d7c5
commit 4b9a1590df
+1 -3
View File
@@ -158,9 +158,7 @@ def verify_plugin_archive_certificate(
# ``plugin.certification.trusted_public_keys``) the declaration is # ``plugin.certification.trusted_public_keys``) the declaration is
# unresolvable rather than rejected, so ``certificate_id`` stays unset and # unresolvable rather than rejected, so ``certificate_id`` stays unset and
# admission can degrade to the dedicated profile instead of blocking. # admission can degrade to the dedicated profile instead of blocking.
certificate_id = ( certificate_id = envelope.key_id if envelope is not None and envelope.key_id in key_ring else None
envelope.key_id if envelope is not None and envelope.key_id in key_ring else None
)
state = { state = {
'absent': CertificateVerification.ABSENT, 'absent': CertificateVerification.ABSENT,
'malformed': CertificateVerification.MALFORMED, 'malformed': CertificateVerification.MALFORMED,