Skip to content

Commit

Permalink
Fix duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
radurentea committed Aug 27, 2024
1 parent 50c21c7 commit 4b9b4a1
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/espIdf/setTarget/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,7 @@ export async function setIdfTarget(
workspaceFolder.uri
);
}

const isTargetSet = await setTargetInIDF(
workspaceFolder,
selectedTarget
);
if (isTargetSet) {
const msg = l10n.t(
"Target {0} Set Successfully.",
selectedTarget.target.toLocaleUpperCase()
);
OutputChannel.appendLineAndShow(msg, "Set Target");
Logger.infoNotify(msg);
}
await setTargetInIDF(workspaceFolder, selectedTarget);
} catch (err) {
const errMsg =
err instanceof Error
Expand Down

0 comments on commit 4b9b4a1

Please sign in to comment.