Skip to content

Commit

Permalink
Just cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Camwyn committed Nov 9, 2023
1 parent 84d5a78 commit c9a21db
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Telemetry/Events/Event_Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ public function send_events() {
return;
}

if ( ! is_array( $events ) ) {
$events = (array) $events;
}

$this->container->get( Event::class )->send_batch( $events );
$this->container->get( Event::class )->send_batch( (array) $events );
}
}

0 comments on commit c9a21db

Please sign in to comment.