File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
pkg/nnbd_migration/lib/src Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class NonNullableFix {
122
122
/// file, and the analysis_options.yaml file, each only if necessary.
123
123
///
124
124
/// [neededPackages] is a map whose keys are the names of packages that should
125
- /// be dependend upon by the package's pubspec, and whose values are the
125
+ /// be depended upon by the package's pubspec, and whose values are the
126
126
/// minimum required versions of those packages.
127
127
void processPackage (Folder pkgFolder, Map <String , Version > neededPackages) {
128
128
var pubspecFile = pkgFolder.getChildAssumingFile ('pubspec.yaml' );
@@ -156,7 +156,6 @@ class NonNullableFix {
156
156
Future <MigrationState > rerun () async {
157
157
reset ();
158
158
var state = await rerunFunction ();
159
- await state.refresh (_logger);
160
159
return state;
161
160
}
162
161
Original file line number Diff line number Diff line change @@ -364,7 +364,9 @@ class PreviewSite extends Site
364
364
365
365
Future <void > rerunMigration () async {
366
366
migrationState = await rerunFunction ();
367
- reset ();
367
+ if (! migrationState.hasErrors) {
368
+ reset ();
369
+ }
368
370
}
369
371
370
372
void reset () {
You can’t perform that action at this time.
0 commit comments