fix recursive self calls (flutter/engine#37321)

* fix recursive self calls

* update tool signature
This commit is contained in:
Phil Quitslund 2022-11-04 14:46:11 -07:00 committed by GitHub
parent 3a3ebf5937
commit d2dd874b42
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
Signature: 960c777bbc4aed25629fa86a8d7bf10b
Signature: fd17294a410a1a503ab9aa72a0797dbe

View File

@ -106,7 +106,7 @@ class _RepositorySourceFile extends _RepositoryLicensedFile {
}
}
_licenses!.sort();
for (final License license in licenses) {
for (final License license in _licenses!) {
license.markUsed(io.fullName, libraryName);
}
assert(_licenses != null && _licenses!.isNotEmpty);
@ -126,7 +126,7 @@ class _RepositoryBinaryFile extends _RepositoryLicensedFile {
if (_licenses == null || _licenses!.isEmpty) {
throw 'no license file found in scope for ${io.fullName}';
}
for (final License license in licenses!) {
for (final License license in _licenses!) {
license.markUsed(io.fullName, libraryName);
}
}