Skip to content

Commit b8b1e8d

Browse files
committed
Fix cleanup snapshot lint findings
1 parent 36796d4 commit b8b1e8d

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

inc/Cli/Commands/WorkspaceCommand.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -873,10 +873,6 @@ private function drain_cleanup_run_to_status( array $result, array $assoc_args )
873873
* @return string Empty string on success.
874874
*/
875875
private function run_wp_cli_command( string $command ): string {
876-
if ( ! method_exists('WP_CLI', 'runcommand') ) {
877-
return 'WP_CLI::runcommand is unavailable; run the reported drain commands manually.';
878-
}
879-
880876
try {
881877
WP_CLI::runcommand(
882878
$command,
@@ -1063,14 +1059,6 @@ private function render_worktree_cleanup_result_from_ability( array|\WP_Error $r
10631059
$this->render_worktree_cleanup_result($result, $assoc_args);
10641060
}
10651061

1066-
private function render_worktree_artifact_cleanup_result_from_ability( array|\WP_Error $result, array $assoc_args ): void {
1067-
if ( is_wp_error($result) ) {
1068-
WP_CLI::error($result->get_error_message());
1069-
return;
1070-
}
1071-
$this->render_worktree_artifact_cleanup_result($result, $assoc_args);
1072-
}
1073-
10741062
private function render_worktree_emergency_cleanup_result_from_ability( array|\WP_Error $result, array $assoc_args ): void {
10751063
if ( is_wp_error($result) ) {
10761064
WP_CLI::error($result->get_error_message());

0 commit comments

Comments
 (0)