enable lint prefer_interpolation_to_compose_strings (#83407)

This commit is contained in:
Alexandre Ardhuin
2021-06-01 20:14:06 +02:00
committed by GitHub
parent 71e711547f
commit 34059eec2c
96 changed files with 367 additions and 345 deletions

View File

@@ -410,7 +410,7 @@ class _FakeHttpClientRequest implements HttpClientRequest {
@override
void writeln([Object? object = '']) {
_body.addAll(utf8.encode(object.toString() + '\n'));
_body.addAll(utf8.encode('$object\n'));
}
}

View File

@@ -18,7 +18,7 @@ void validatePubspecForPlugin({
String? webFileName,
}) {
final FlutterManifest manifest =
FlutterManifest.createFromPath(projectDir + '/pubspec.yaml', fileSystem: globals.fs, logger: globals.logger)!;
FlutterManifest.createFromPath('$projectDir/pubspec.yaml', fileSystem: globals.fs, logger: globals.logger)!;
final YamlMap platformsMap = YamlMap.wrap(manifest.supportedPlatforms!);
for (final String platform in expectedPlatforms) {
expect(platformsMap[platform], isNotNull);