Skip to content

Commit 2ca95be

Browse files
committed
Put break back in correct spot
1 parent 1cc7ba7 commit 2ca95be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

exasol/toolbox/util/dependencies/licenses.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ def select_most_restrictive(licenses: list[str]) -> str:
7171
"GPLv3": 6,
7272
}
7373
for l in licenses:
74-
if l not in _mapping:
74+
if l in _mapping:
75+
if _mapping[l] > _mapping[lic]:
76+
lic = l
77+
else:
7578
return "<br>".join(licenses)
76-
if _mapping[l] > _mapping[lic]:
77-
lic = l
7879
return lic
7980

8081
if is_multi_license(_license):

0 commit comments

Comments
 (0)