Skip to content

Commit

Permalink
style: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Feb 2, 2023
1 parent 722924e commit c7dc9c8
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tools/pfe-tools/cli/commands/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,13 @@ export async function handler(argv: Opts) {
return;
}

if (missing.size) {
if (!argv.quiet) {
for (const [, x] of missing) {
console.log(chalk.red`missing export`, x);
}
if (!argv.quiet) {
for (const [, x] of missing) {
console.log(chalk.red`missing export`, x);
}
}

if (noTarget.size) {
if (!argv.quiet) {
for (const [k, x] of noTarget) {
console.log(`${chalk.red`target`} ${chalk.yellow(x)} for export ${chalk.blue(k)} ${chalk.red`doesn't exist`}`);
}
for (const [k, x] of noTarget) {
console.log(`${chalk.red`target`} ${chalk.yellow(x)} for export ${chalk.blue(k)} ${chalk.red`doesn't exist`}`);
}
}

Expand Down

0 comments on commit c7dc9c8

Please sign in to comment.