Skip to content

Commit c7dc9c8

Browse files
committed
style: refactor
1 parent 722924e commit c7dc9c8

File tree

1 file changed

+5
-11
lines changed
  • tools/pfe-tools/cli/commands

1 file changed

+5
-11
lines changed

tools/pfe-tools/cli/commands/lint.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,13 @@ export async function handler(argv: Opts) {
5858
return;
5959
}
6060

61-
if (missing.size) {
62-
if (!argv.quiet) {
63-
for (const [, x] of missing) {
64-
console.log(chalk.red`missing export`, x);
65-
}
61+
if (!argv.quiet) {
62+
for (const [, x] of missing) {
63+
console.log(chalk.red`missing export`, x);
6664
}
67-
}
6865

69-
if (noTarget.size) {
70-
if (!argv.quiet) {
71-
for (const [k, x] of noTarget) {
72-
console.log(`${chalk.red`target`} ${chalk.yellow(x)} for export ${chalk.blue(k)} ${chalk.red`doesn't exist`}`);
73-
}
66+
for (const [k, x] of noTarget) {
67+
console.log(`${chalk.red`target`} ${chalk.yellow(x)} for export ${chalk.blue(k)} ${chalk.red`doesn't exist`}`);
7468
}
7569
}
7670

0 commit comments

Comments
 (0)