Skip to content

Commit 863ef45

Browse files
fix: align metadata reconcile assignments
1 parent 221e5fe commit 863ef45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

inc/Workspace/WorkspaceMetadataReconciliation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public function worktree_reconcile_metadata( array $opts = array() ): array|\WP_
3939
return $scope;
4040
}
4141
$scope_arg = $this->worktree_operation_scope_cli_arg($scope);
42-
$paged = array_key_exists('limit', $opts) || array_key_exists('offset', $opts) || '' !== $until_budget;
43-
$limit = $paged ? ( array_key_exists('limit', $opts) ? (int) $opts['limit'] : self::METADATA_RECONCILE_DEFAULT_LIMIT ) : 0;
44-
$offset = $paged ? max(0, (int) ( $opts['offset'] ?? 0 )) : 0;
42+
$paged = array_key_exists('limit', $opts) || array_key_exists('offset', $opts) || '' !== $until_budget;
43+
$limit = $paged ? ( array_key_exists('limit', $opts) ? (int) $opts['limit'] : self::METADATA_RECONCILE_DEFAULT_LIMIT ) : 0;
44+
$offset = $paged ? max(0, (int) ( $opts['offset'] ?? 0 )) : 0;
4545

4646
if ( null !== $apply_plan ) {
4747
return $this->apply_worktree_metadata_reconciliation_plan($apply_plan);

0 commit comments

Comments
 (0)