Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/licenses_golden/tool_signature
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Signature: 960c777bbc4aed25629fa86a8d7bf10b
Signature: fd17294a410a1a503ab9aa72a0797dbe

4 changes: 2 additions & 2 deletions tools/licenses/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
}
Expand Down