Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
wrong loop
Browse files Browse the repository at this point in the history
  • Loading branch information
qmx committed Mar 13, 2020
1 parent 44bfd80 commit fa97173
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ async function run() {
}
await rustup.installToolchain(opts.name, installOptions);

for (let target in opts.targets) {
await rustup.addTarget(target, opts.name);
if (opts.targets) {
for (let target of opts.targets) {
await rustup.addTarget(target, opts.name);
}
}

await versions.gatherInstalledVersions();
}

Expand Down

0 comments on commit fa97173

Please # to comment.