Skip to content

Commit 04cf380

Browse files
committed
Deleted useless comments
1 parent 15b54d3 commit 04cf380

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/FastJsonPatch.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,13 @@ public function apply(string $patch): void
141141
$revertPatch[] = $Operation->getRevertPatch($p);
142142
}
143143
} catch (FastJsonPatchException $e) {
144-
// restore the original document
145144
foreach (array_reverse($revertPatch) as $p) {
146145
if (!is_null($p)) {
147146
$p = (object) $p;
148147
$this->operations[$p->op]->apply($this->document, $p);
149148
}
150149
}
151150

152-
// validation errors with the patch itself
153151
if ($e instanceof FastJsonPatchValidationException) {
154152
$i = count($revertPatch);
155153
throw new InvalidPatchException(

0 commit comments

Comments
 (0)