We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5d6636 commit 9bd3c24Copy full SHA for 9bd3c24
1 file changed
lib/commands/info/index.js
@@ -204,10 +204,8 @@ function formatPackageIssuesDetails (packageData) {
204
const uniqueIssues = issueDetails.reduce((/** @type {{ [key: string]: number }} */ acc, issue) => {
205
const { type } = issue
206
if (type) {
207
- let count = 0
208
if (!acc[type]) {
209
- count += 1
210
- acc[type] = count
+ acc[type] = 1
211
} else {
212
acc[type]++
213
}
0 commit comments