Skip to content

Commit 88f9c34

Browse files
committed
fix(zana-lock): keep package indent on remove
1 parent c8c4f40 commit 88f9c34

File tree

1 file changed

+1
-1
lines changed
  • internal/lib/local_packages_parser

1 file changed

+1
-1
lines changed

internal/lib/local_packages_parser/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func RemoveLocalPackage(sourceId string) error {
119119
}
120120

121121
localPackagesFile := files.GetAppLocalPackagesFilePath()
122-
jsonData, err := json.Marshal(localPackageRoot)
122+
jsonData, err := json.MarshalIndent(localPackageRoot, "", " ")
123123
if err != nil {
124124
fmt.Println("Error marshaling JSON:", err)
125125
return err

0 commit comments

Comments
 (0)