Skip to content

Commit 1a0d214

Browse files
committed
small refactor
1 parent b48d5d3 commit 1a0d214

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/commands/info/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,8 @@ function formatPackageIssuesDetails (packageData) {
204204
const uniqueIssues = issueDetails.reduce((/** @type {{ [key: string]: number }} */ acc, issue) => {
205205
const { type } = issue
206206
if (type) {
207-
let count = 0
208207
if (!acc[type]) {
209-
count += 1
210-
acc[type] = count
208+
acc[type] = 1
211209
} else {
212210
acc[type]++
213211
}

0 commit comments

Comments
 (0)