Skip to content

Commit

Permalink
chore(runner): delete useless if-statement used to print version info (
Browse files Browse the repository at this point in the history
  • Loading branch information
Donovan-Ye authored Sep 9, 2024
1 parent 07163df commit 37f8b1b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@ export async function run(fn: Runner, args: string[], options: DetectOptions = {
return
}

if (args.length === 1 && (args[0] === '--version' || args[0] === '-v')) {
console.log(`@antfu/ni v${version}`)
return
}

if (args.length === 1 && ['-h', '--help'].includes(args[0])) {
const dash = c.dim('-')
console.log(c.green(c.bold('@antfu/ni')) + c.dim(` use the right package manager v${version}\n`))
Expand Down

0 comments on commit 37f8b1b

Please sign in to comment.