diff --git a/script/tool/lib/src/drive_examples_command.dart b/script/tool/lib/src/drive_examples_command.dart index e52052a49a..0230ebd671 100644 --- a/script/tool/lib/src/drive_examples_command.dart +++ b/script/tool/lib/src/drive_examples_command.dart @@ -101,13 +101,13 @@ class DriveExamplesCommand extends PluginCommand { fileSystem.directory(p.join(example.path, 'integration_test')); if (await integrationTests.exists()) { - await for (final FileSystemEntity integration_test + await for (final FileSystemEntity integrationTest in integrationTests.list()) { - if (!integration_test.basename.endsWith('_test.dart')) { + if (!integrationTest.basename.endsWith('_test.dart')) { continue; } targetPaths - .add(p.relative(integration_test.path, from: example.path)); + .add(p.relative(integrationTest.path, from: example.path)); } } diff --git a/script/tool/lib/src/version_check_command.dart b/script/tool/lib/src/version_check_command.dart index 0b552e8bff..39fecc0392 100644 --- a/script/tool/lib/src/version_check_command.dart +++ b/script/tool/lib/src/version_check_command.dart @@ -187,7 +187,7 @@ class VersionCheckCommand extends PluginCommand { // Skip validation for the special NEXT version that's used to accumulate // changes that don't warrant publishing on their own. - bool hasNextSection = versionString == 'NEXT'; + final bool hasNextSection = versionString == 'NEXT'; if (hasNextSection) { print('Found NEXT; validating next version in the CHANGELOG.'); // Ensure that the version in pubspec hasn't changed without updating