We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 497605a + 036a418 commit c978bcfCopy full SHA for c978bcf
lib/controllers/migrate-controller.ts
@@ -311,7 +311,7 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
311
312
private async migrateDependency(dependency: IMigrationDependency, projectData: IProjectData): Promise<void> {
313
const hasDependency = this.hasDependency(dependency, projectData);
314
- if (dependency.warning) {
+ if (hasDependency && dependency.warning) {
315
this.$logger.warn(dependency.warning);
316
}
317
0 commit comments