Properly declare platform variable.

Without this, `platform` was causing weird behavior in `meteor run <target>`.
This commit is contained in:
Jesse Rosenberger
2017-08-01 13:49:23 +03:00
parent 043e2922f6
commit 4925b40e42

View File

@@ -403,7 +403,7 @@ from Cordova project`, async () => {
const installedPlatforms = this.listInstalledPlatforms();
for (platform of platforms) {
for (let platform of platforms) {
if (_.contains(installedPlatforms, platform)) {
continue;
}
@@ -411,7 +411,7 @@ from Cordova project`, async () => {
this.addPlatform(platform);
}
for (platform of installedPlatforms) {
for (let platform of installedPlatforms) {
if (!_.contains(platforms, platform) &&
_.contains(CORDOVA_PLATFORMS, platform)) {
this.removePlatform(platform);