From 4b9a1590df203d7cb8bb92e85ddca787c3501571 Mon Sep 17 00:00:00 2001 From: TyperBody Date: Fri, 25 Sep 2026 20:37:57 +0800 Subject: [PATCH] style(plugin): apply ruff formatting to certification.py --- src/langbot/pkg/plugin/certification.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/langbot/pkg/plugin/certification.py b/src/langbot/pkg/plugin/certification.py index 5a2d7ba6c..1263da518 100644 --- a/src/langbot/pkg/plugin/certification.py +++ b/src/langbot/pkg/plugin/certification.py @@ -158,9 +158,7 @@ def verify_plugin_archive_certificate( # ``plugin.certification.trusted_public_keys``) the declaration is # unresolvable rather than rejected, so ``certificate_id`` stays unset and # admission can degrade to the dedicated profile instead of blocking. - certificate_id = ( - envelope.key_id if envelope is not None and envelope.key_id in key_ring else None - ) + certificate_id = envelope.key_id if envelope is not None and envelope.key_id in key_ring else None state = { 'absent': CertificateVerification.ABSENT, 'malformed': CertificateVerification.MALFORMED,