Skip to content

Commit 4784d0c

Browse files
committed
Fix JSON.stringify to JSON.parse typo
1 parent 441050b commit 4784d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/optimize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const lsByAgent = (() => {
186186
}
187187
let pkgs
188188
try {
189-
pkgs = JSON.stringify(stdout)
189+
pkgs = JSON.parse(stdout)
190190
} catch {}
191191
if (!Array.isArray(pkgs)) {
192192
return ''

0 commit comments

Comments
 (0)