forked from MapComplete/MapComplete
Refactoring: move functions out of Utils
This commit is contained in:
parent
442f5a2923
commit
5ea2414204
16 changed files with 126 additions and 145 deletions
|
|
@ -327,7 +327,7 @@ export class GenerateLicenseInfo extends Script {
|
|||
}
|
||||
|
||||
licenses.sort((a, b) => (a.path < b.path ? -1 : 1))
|
||||
licenses = Utils.DedupOnId(licenses, (l) => l.path)
|
||||
licenses = Lists.dedupOnId(licenses, (l) => l.path)
|
||||
const path = dir + "/license_info.json"
|
||||
if (licenses.length === 0) {
|
||||
console.log("Removing", path, "as it is empty")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue