Skip to content

Commit c0c4018

Browse files
pqschwa423
authored andcommitted
fix recursive self calls (flutter#37321)
* fix recursive self calls * update tool signature
1 parent 82a4f7a commit c0c4018

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ci/licenses_golden/tool_signature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Signature: 960c777bbc4aed25629fa86a8d7bf10b
1+
Signature: fd17294a410a1a503ab9aa72a0797dbe
22

tools/licenses/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class _RepositorySourceFile extends _RepositoryLicensedFile {
106106
}
107107
}
108108
_licenses!.sort();
109-
for (final License license in licenses) {
109+
for (final License license in _licenses!) {
110110
license.markUsed(io.fullName, libraryName);
111111
}
112112
assert(_licenses != null && _licenses!.isNotEmpty);
@@ -126,7 +126,7 @@ class _RepositoryBinaryFile extends _RepositoryLicensedFile {
126126
if (_licenses == null || _licenses!.isEmpty) {
127127
throw 'no license file found in scope for ${io.fullName}';
128128
}
129-
for (final License license in licenses!) {
129+
for (final License license in _licenses!) {
130130
license.markUsed(io.fullName, libraryName);
131131
}
132132
}

0 commit comments

Comments
 (0)