Skip to content

Commit 4f8ffda

Browse files
committed
Satisfy workspace routing static analysis
1 parent 6d7f556 commit 4f8ffda

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

inc/Abilities/WorkspaceAbilities.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3470,8 +3470,9 @@ private static function hasLocalPrimaryCheckout( Workspace $workspace, string $r
34703470
return false;
34713471
}
34723472

3473-
$path = (string) ( $result['path'] ?? '' );
3474-
return empty($result['is_worktree']) && '' !== $path && ! str_starts_with($path, 'github://');
3473+
$path = (string) ( $result['path'] ?? '' );
3474+
$is_worktree = (bool) ( $result['is_worktree'] ?? false );
3475+
return ! $is_worktree && '' !== $path && ! str_starts_with($path, 'github://');
34753476
}
34763477

34773478
/**

0 commit comments

Comments
 (0)