Skip to content

Commit ac3fa5d

Browse files
committed
Revert check
1 parent a1102e5 commit ac3fa5d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/MCP/Abilities/AbilityRuntime.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ public function execute( ToolInterface $tool, array $args ) {
107107
return $error;
108108
}
109109

110-
if ( ! $response instanceof \WP_REST_Response ) {
111-
$error = $this->error( 'rest_dispatch_error', 'Invalid REST response.', 500 );
112-
$this->record_error( $entry, 'error', $error );
113-
return $error;
114-
}
115-
116110
$status = (int) $response->get_status();
117111
$data = $response->get_data();
118112
$result = is_array( $data ) ? $data : [ 'result' => $data ];

0 commit comments

Comments
 (0)