[tools] fix version check command not working for new packages (#3818)

This commit is contained in:
Chris Yang
2021-04-21 16:40:20 -07:00
committed by GitHub
parent 63d42fcdb9
commit c4170d8f64
2 changed files with 21 additions and 1 deletions

View File

@ -3,7 +3,6 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:io' as io;
import 'package:meta/meta.dart';
import 'package:file/file.dart';
@ -121,6 +120,7 @@ class VersionCheckCommand extends PluginCommand {
if (masterVersion == null) {
print('${indentation}Unable to find pubspec in master. '
'Safe to ignore if the project is new.');
continue;
}
if (masterVersion == headVersion) {