Commit 54c33d2f authored by Erick Hitter's avatar Erick Hitter
Browse files

Unnecessary check, as `run_event()` will only return error or array.

parent 8c81140b
......@@ -67,7 +67,7 @@ class Orchestrate_Runner extends \WP_CLI_Command {
if ( is_wp_error( $run ) ) {
\WP_CLI::error( $run->get_error_message() );
} elseif ( is_array( $run ) && isset( $run['success'] ) && true === $run['success'] ) {
} elseif ( isset( $run['success'] ) && true === $run['success'] ) {
\WP_CLI::success( $run['message'] );
} else {
\WP_CLI::error( $run['message'] );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment