Merge pull request #182 from tobias47n9e/bugfix/mbc-init-spdx

Fix choosing SPDX license during plugin init
This commit is contained in:
Tulir Asokan 2022-11-22 14:33:52 +02:00 committed by GitHub
commit 55ffe54fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,10 +36,10 @@ def load() -> None:
def get(id: str) -> dict[str, str]: def get(id: str) -> dict[str, str]:
if not spdx_list: if not spdx_list:
load() load()
return spdx_list[id.lower()] return spdx_list[id]
def valid(id: str) -> bool: def valid(id: str) -> bool:
if not spdx_list: if not spdx_list:
load() load()
return id.lower() in spdx_list return id in spdx_list