[License] Assert license filename is non-null, non-empty (flutter/engine#7270)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
Signature: a55f4ce9207b1a1dff62891b1c203f5e
|
||||
Signature: 0461a8d6fe3503cd19d8e0d3becfee87
|
||||
|
||||
|
||||
@@ -56,4 +56,5 @@ linter:
|
||||
- unnecessary_brace_in_string_interps
|
||||
- unnecessary_getters_setters
|
||||
- unnecessary_new
|
||||
- unnecessary_statements
|
||||
- package_names
|
||||
|
||||
@@ -357,9 +357,10 @@ abstract class License implements Comparable<License> {
|
||||
bool get isUsed => _licensees.isNotEmpty;
|
||||
|
||||
void markUsed(String filename, String libraryName) {
|
||||
assert(filename != null);
|
||||
assert(filename != '');
|
||||
assert(libraryName != null);
|
||||
assert(libraryName != '');
|
||||
filename != null;
|
||||
_licensees.add(filename);
|
||||
_libraries.add(libraryName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user