Skip to content

Commit d7b22bc

Browse files
committed
Correct condition check for banned web frameworks
1 parent 4361ee6 commit d7b22bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cli/src/init/test/lookup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { isEmpty } from "@fxts/core/index.js";
12
import { values } from "@optique/core";
23
import type { ChildProcessByStdio } from "node:child_process";
34
import { spawn } from "node:child_process";
@@ -55,7 +56,7 @@ function filterWebFrameworks(
5556
dirs.map((dir) => dir.split(sep).slice(-4, -3)[0] as WebFramework),
5657
);
5758
const hasBanned = BANNED_WFS.filter((wf) => wfs.has(wf));
58-
if (!hasBanned) {
59+
if (isEmpty(hasBanned)) {
5960
return dirs;
6061
}
6162
const bannedLabels = hasBanned.map((wf) => webFrameworks[wf]["label"]);

0 commit comments

Comments
 (0)