From 348a583bc20ba33f314c92dc76670e713fe6ef41 Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Thu, 26 Mar 2020 01:57:35 -0600 Subject: [PATCH] Autoloader: Remove file check to improve performance. (#15118) --- packages/autoloader/src/autoload.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/autoloader/src/autoload.php b/packages/autoloader/src/autoload.php index 0ae8017ed04a5..30561bf1398bb 100644 --- a/packages/autoloader/src/autoload.php +++ b/packages/autoloader/src/autoload.php @@ -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;