From 2b4527fa64677c7dfcf4e0bbd9f404f4bf2174fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 29 Sep 2021 18:33:45 +0200 Subject: [PATCH] Return early in validate (#3168) * Return early in validate * pylint --- supervisor/utils/codenotary.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/supervisor/utils/codenotary.py b/supervisor/utils/codenotary.py index deeb2c484..7c92fd9fe 100644 --- a/supervisor/utils/codenotary.py +++ b/supervisor/utils/codenotary.py @@ -1,4 +1,5 @@ """Small wrapper for CodeNotary.""" +# pylint: disable=unreachable import asyncio import hashlib import json @@ -37,6 +38,7 @@ async def vcn_validate( signer: Optional[str] = None, ) -> None: """Validate data against CodeNotary.""" + return None if (checksum, path, org, signer) in _CACHE: return command = shlex.split(_VCN_CMD)