Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Aug 9, 2024
1 parent 1d1a439 commit 459abce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/class-connectors.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public function load_connectors() {
// Set fully qualified class name.
$class_name = sprintf( '\WP_Stream\Connector_%s', str_replace( '-', '_', $connector ) );

// Bail if no class loaded or it does not extend WP_Stream\Connector.
if ( ! class_exists( $class_name ) || ! is_subclass_of( $class_name, 'WP_Stream\Connector' ) ) {
// Bail if no class loaded.
if ( ! class_exists( $class_name ) ) {
continue;
}

Expand Down

0 comments on commit 459abce

Please sign in to comment.