Skip to content

Commit

Permalink
Update cmd.js
Browse files Browse the repository at this point in the history
- removed double quotes
- added newline at end of file
  • Loading branch information
qbytx committed Sep 28, 2024
1 parent 97ff850 commit 5c35428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const { resolve } = require('node:path')

const args = [...process.argv.slice(2)]

const directory = (!args[0] || args[0] === "" || args[0].startsWith('-')) ? '.' : resolve(args[0])
const directory = (!args[0] || args[0] === '' || args[0].startsWith('-')) ? '.' : resolve(args[0])

require('fastify-cli/generate').cli([directory])
require('fastify-cli/generate').cli([directory])

0 comments on commit 5c35428

Please sign in to comment.