mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-22 13:55:03 +01:00
csv_metadata_quality/check.py: Remove unnecessary pass
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
LGTM warned that these pass statements are not necessary. See: https://lgtm.com/rules/910088/
This commit is contained in:
parent
dbc0437d59
commit
a8fe623f4c
@ -178,13 +178,9 @@ def language(field):
|
|||||||
if len(value) == 2:
|
if len(value) == 2:
|
||||||
if not languages.get(alpha_2=value):
|
if not languages.get(alpha_2=value):
|
||||||
print(f"{Fore.RED}Invalid ISO 639-1 language: {Fore.RESET}{value}")
|
print(f"{Fore.RED}Invalid ISO 639-1 language: {Fore.RESET}{value}")
|
||||||
|
|
||||||
pass
|
|
||||||
elif len(value) == 3:
|
elif len(value) == 3:
|
||||||
if not languages.get(alpha_3=value):
|
if not languages.get(alpha_3=value):
|
||||||
print(f"{Fore.RED}Invalid ISO 639-3 language: {Fore.RESET}{value}")
|
print(f"{Fore.RED}Invalid ISO 639-3 language: {Fore.RESET}{value}")
|
||||||
|
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
print(f"{Fore.RED}Invalid language: {Fore.RESET}{value}")
|
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:
|
if value not in spdx_license_list.LICENSES:
|
||||||
print(f"{Fore.YELLOW}Non-SPDX license identifier: {Fore.RESET}{value}")
|
print(f"{Fore.YELLOW}Non-SPDX license identifier: {Fore.RESET}{value}")
|
||||||
|
|
||||||
pass
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user