Commit 932eca2
fix: guard non-object target credentials.json in homedir migration
JSON.parse succeeds on null/string/number but `in` operator throws
TypeError on non-objects. Normalize parsed value to {} when not a
plain object.
[宪宪/Opus-46🐾]
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0217075 commit 932eca2
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
400 | 403 | | |
401 | 404 | | |
402 | 405 | | |
| |||
0 commit comments