Skip to content

Commit

Permalink
fix: hide plugin tag if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 31, 2018
1 parent aa97f98 commit 76f1ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ${examplePluginsHelp.join('\n')}
let output = `${plugin.name} ${color.dim(plugin.version)}`
if (plugin.type !== 'user') output += color.dim(` (${plugin.type})`)
if (plugin.type === 'link') output += ` ${plugin.root}`
else if (plugin.tag !== 'latest') output += color.dim(` (${String(plugin.tag)})`)
else if (plugin.tag && plugin.tag !== 'latest') output += color.dim(` (${String(plugin.tag)})`)
cli.log(output)
}
}
Expand Down

0 comments on commit 76f1ac5

Please sign in to comment.