Skip to content

Commit 463cb0e

Browse files
ADA-FunniKade-github
authored andcommitted
Make sure there's actually a patch to ignore if garbageValue isn't 37
1 parent a476c78 commit 463cb0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/content/cookbook/Introduction/05.AppendingAndMerge.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ We can modify the above data with a document `mods/mymod/_merge/data/songs/myson
186186
// Add a new value "expert" to the end of the difficulty array.
187187
{"op": "add", "path": "/playData/difficulties/-", "value": "expert"},
188188

189-
// Remove the key `garbageValue` from the data entirely.
190-
{"op": "remove", "path": "/playData/garbageValue"},
191-
192189
// This operation checks if `garbageValue` is 37.
193190
// If it fails, then the next patches will be rejected.
194191
{"op": "test", "path": "/playData/garbageValue", "value": 37},
192+
193+
// Remove the key `garbageValue` from the data entirely.
194+
{"op": "remove", "path": "/playData/garbageValue"},
195195
]
196196
```
197197

0 commit comments

Comments
 (0)