Skip to content

Commit

Permalink
Autoloader: Remove file check to improve performance. (#15118)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffstieler authored Mar 26, 2020
1 parent 38b97d2 commit 348a583
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/autoloader/src/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ function autoloader( $class_name ) {
}
}

if ( file_exists( $jetpack_packages_classes[ $class_name ]['path'] ) ) {
require_once $jetpack_packages_classes[ $class_name ]['path'];
require_once $jetpack_packages_classes[ $class_name ]['path'];

return true;
}
return true;
}

return false;
Expand Down

0 comments on commit 348a583

Please sign in to comment.