Skip to content

Commit

Permalink
Use narrowed down variable within if's body (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jan 10, 2024
1 parent 2dd112b commit 31539f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/test-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export async function testdir(dir: Fixture) {
const output = dir[filename];
const fullPath = path.join(temp, filename);
if (typeof output === "string") {
await fs.outputFile(fullPath, dir[filename]);
await fs.outputFile(fullPath, output);
} else {
const dir = path.dirname(fullPath);
await fs.ensureDir(dir);
Expand Down

0 comments on commit 31539f7

Please sign in to comment.