Skip to content

Commit 64726b2

Browse files
committed
refactor(cli): Review fixing
1 parent 7da50a3 commit 64726b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/commands/init.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const initFunction = async () => {
191191
fs.rmSync(path.join(templatesDir, ".git"), { recursive: true });
192192
const templates = ['Starter'];
193193
templates.push(...fs.readdirSync(runtimeDir, { withFileTypes: true })
194-
.filter(dirent => dirent.isDirectory() && dirent.name !== 'starter')
194+
.filter(item => item.isDirectory() && item.name !== 'starter')
195195
.map(dirent => dirent.name));
196196

197197
let selected = { template: 'starter' };

0 commit comments

Comments
 (0)