Skip to content
This repository was archived by the owner on Sep 24, 2026. It is now read-only.

Commit 77d022b

Browse files
committed
🐛 fix incorrect marshalled data from adding and removing to/from files
1 parent d4a3d5d commit 77d022b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎pkg/ccoco/ccoco.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ func (c Ccoco) AddToFiles(files []string) error {
464464
}
465465
}
466466

467-
configData, err := json.MarshalIndent(c.configFile, "", " ")
467+
configData, err := json.MarshalIndent(c.configFile.Content, "", " ")
468468
if err != nil {
469469
return err
470470
}
@@ -499,7 +499,7 @@ func (c Ccoco) RemoveFromFiles(files []string) error {
499499
}
500500
c.configFile.Content.Files = newFiles
501501

502-
configData, err := json.MarshalIndent(c.configFile, "", " ")
502+
configData, err := json.MarshalIndent(c.configFile.Content, "", " ")
503503
if err != nil {
504504
return err
505505
}

0 commit comments

Comments
 (0)