Commit db8ff48d authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Omit the package names from the license text. (#5102)

This was a minor typo in the original code. It makes the license display
slightly cleaner.
parent 8219ab61
......@@ -216,8 +216,8 @@ Future<AssetBundleEntry> _obtainLicenses(
final List<String> rawLicenses =
(await file.readAsString()).split(_licenseSeparator);
for (String rawLicense in rawLicenses) {
String licenseText;
List<String> packageNames;
String licenseText;
if (packageName == 'sky_engine') {
final int split = rawLicense.indexOf('\n\n');
if (split >= 0) {
......@@ -226,10 +226,10 @@ Future<AssetBundleEntry> _obtainLicenses(
}
}
if (licenseText == null) {
licenseText = rawLicense;
packageNames = <String>[packageName];
licenseText = rawLicense;
}
packageLicenses.putIfAbsent(rawLicense, () => new Set<String>())
packageLicenses.putIfAbsent(licenseText, () => new Set<String>())
..addAll(packageNames);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment