Skip to content

Commit

Permalink
fix: removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-blunden committed Oct 20, 2018
1 parent fdc94d9 commit 3361342
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ async function main(): Promise<void> {
let title: string | undefined
let description: string | undefined
let publisher: string | undefined
let icon: string | undefined

try {
;({ name, title, description, publisher, icon } = JSON.parse(await readFile('package.json', 'utf-8')))
;({ name, title, description, publisher } = JSON.parse(await readFile('package.json', 'utf-8')))
} catch (err) {
if (err.code !== 'ENOENT') {
throw err
Expand All @@ -41,7 +41,7 @@ async function main(): Promise<void> {
console.log(`Extension name is "${name}"`)
} else {
name = await prompt.input({
message: 'What should the name of the extension be (lowercase-hyphen-style)?',
message: 'What should the name of the extension be (kebab-case)?',
})
}

Expand Down

0 comments on commit 3361342

Please sign in to comment.