From a8fe623f4cb707f8e0bd9b9f04a4b677ab80d398 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 20 Apr 2021 08:20:13 +0300 Subject: [PATCH] csv_metadata_quality/check.py: Remove unnecessary pass LGTM warned that these pass statements are not necessary. See: https://lgtm.com/rules/910088/ --- csv_metadata_quality/check.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/csv_metadata_quality/check.py b/csv_metadata_quality/check.py index b396418..88c1f5c 100755 --- a/csv_metadata_quality/check.py +++ b/csv_metadata_quality/check.py @@ -178,13 +178,9 @@ def language(field): if len(value) == 2: if not languages.get(alpha_2=value): print(f"{Fore.RED}Invalid ISO 639-1 language: {Fore.RESET}{value}") - - pass elif len(value) == 3: if not languages.get(alpha_3=value): print(f"{Fore.RED}Invalid ISO 639-3 language: {Fore.RESET}{value}") - - pass else: print(f"{Fore.RED}Invalid language: {Fore.RESET}{value}") @@ -305,8 +301,6 @@ def spdx_license_identifier(field): if value not in spdx_license_list.LICENSES: print(f"{Fore.YELLOW}Non-SPDX license identifier: {Fore.RESET}{value}") - pass - return