set literal conversions (#27811)
This commit is contained in:
@@ -300,7 +300,7 @@ void main() {
|
||||
const String packageName = 'doubleslashpkg';
|
||||
await _createPackage(fs, packageName, 'somefile.txt', doubleSlash: true);
|
||||
|
||||
final Set<String> fileFilter = Set<String>();
|
||||
final Set<String> fileFilter = <String>{};
|
||||
final List<Uri> pkgUris = <Uri>[fs.path.toUri(basePath)]..addAll(_packages.values);
|
||||
for (Uri pkgUri in pkgUris) {
|
||||
if (!pkgUri.isAbsolute) {
|
||||
|
||||
@@ -114,7 +114,7 @@ void main() {
|
||||
pathToReload: anyNamed('pathToReload'),
|
||||
)).thenAnswer((Invocation _) => Future<UpdateFSReport>.value(
|
||||
UpdateFSReport(success: true, syncedBytes: 1000, invalidatedSourcesCount: 1)));
|
||||
when(mockDevFs.assetPathsToEvict).thenReturn(Set<String>());
|
||||
when(mockDevFs.assetPathsToEvict).thenReturn(<String>{});
|
||||
when(mockDevFs.baseUri).thenReturn(Uri.file('test'));
|
||||
|
||||
setUp(() {
|
||||
|
||||
@@ -62,7 +62,7 @@ baz=qux
|
||||
});
|
||||
|
||||
test('is pretty random', () {
|
||||
final Set<String> set = Set<String>();
|
||||
final Set<String> set = <String>{};
|
||||
|
||||
Uuid uuid = Uuid();
|
||||
for (int i = 0; i < 64; i++) {
|
||||
|
||||
Reference in New Issue
Block a user