Merge pull request #182 from tobias47n9e/bugfix/mbc-init-spdx
Fix choosing SPDX license during plugin init
This commit is contained in:
commit
55ffe54fa0
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@ def load() -> None:
|
|||
def get(id: str) -> dict[str, str]:
|
||||
if not spdx_list:
|
||||
load()
|
||||
return spdx_list[id.lower()]
|
||||
return spdx_list[id]
|
||||
|
||||
|
||||
def valid(id: str) -> bool:
|
||||
if not spdx_list:
|
||||
load()
|
||||
return id.lower() in spdx_list
|
||||
return id in spdx_list
|
||||
|
|
Loading…
Reference in a new issue