Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Oct 10, 2024
1 parent d30d885 commit 2b627b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Space.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,10 @@ public function update($instance, Operations|array $operations)
$data = $operations;
$operations = null;
foreach ($data as $k => $v) {
if ($operations == null) {
$operations = Operations::set($k, $v);
} else {
if ($operations !== null) {
$operations = $operations->andSet($k, $v);
} else {
$operations = Operations::set($k, $v);
}
}
}
Expand Down

0 comments on commit 2b627b7

Please sign in to comment.