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: ad6590b867473860a1e6b08bf9e98667
Signature: 5b10e36374c7d600de6c632fde955f7d

2 changes: 2 additions & 0 deletions tools/licenses/lib/licenses.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ abstract class License implements Comparable<License> {
if (!reformatted)
body = _reformat(body);
final License result = _registry.putIfAbsent(body, () {
assert(type != null);
switch (type) {
case LicenseType.bsd:
case LicenseType.mit:
Expand All @@ -200,6 +201,7 @@ abstract class License implements Comparable<License> {
case LicenseType.libpng:
return BlankLicense._(body, type, origin: origin);
}
return null;
});
assert(result.type == type);
return result;
Expand Down