Skip to content

Commit

Permalink
remove superfluous warn
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 14, 2024
1 parent 68e82cf commit f62026a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function maybeFetch(path: string, force: boolean, effects: ConvertEffects)
const {clack} = effects;
if (effects.existsSync(path) && !force) {
const choice = await clack.confirm({message: `${bold(path)} already exists; replace?`, initialValue: false});
if (!choice) return clack.log.warn("Skipping…"), false;
if (!choice) return false;
if (clack.isCancel(choice)) throw new CliError("Stopped convert", {print: false});
}
return true;
Expand Down

0 comments on commit f62026a

Please sign in to comment.