From 6ca34898995ff3c17a0c7a441d4d79081e470c9e Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 27 Feb 2024 18:34:55 +0300 Subject: [PATCH] Add missing parens --- repology/parsers/parsers/winget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repology/parsers/parsers/winget.py b/repology/parsers/parsers/winget.py index c92c54f83..54d841eea 100644 --- a/repology/parsers/parsers/winget.py +++ b/repology/parsers/parsers/winget.py @@ -77,7 +77,7 @@ def _parse_manifest(manifest_data: dict[str, Any], pkg: PackageMaker) -> None: pkg.add_links(LinkType.UPSTREAM_CHANGELOG, manifest_data.get('ReleaseNotesUrl')) for documentation in manifest_data.get('Documentations', []): - if link_type := _document_label_to_link_type(documentation.get('DocumentLabel')) is not None: + if (link_type := _document_label_to_link_type(documentation.get('DocumentLabel'))) is not None: pkg.add_links(link_type, documentation['DocumentUrl']) # pkg.set_summary(manifest_data.get('Description')) # may be long