Skip to content

Commit a00b72d

Browse files
committed
Lint fix
1 parent 6079593 commit a00b72d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/Core_Command.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ private function require_upgrade_file( $context = 'WordPress operation' ) {
20022002
$error['file'],
20032003
$error['line']
20042004
);
2005-
2005+
20062006
// Output directly and exit to avoid WP-CLI's generic plugin/theme suggestion
20072007
fwrite( STDERR, "Error: {$message}\n" );
20082008
exit( 1 );
@@ -2017,14 +2017,14 @@ private function require_upgrade_file( $context = 'WordPress operation' ) {
20172017

20182018
// Mark as completed to prevent the shutdown handler from executing on unrelated errors.
20192019
$require_completed = true;
2020-
}
2021-
2022-
/**
2023-
* Checks if a WP_Error is related to the core_updater.lock.
2024-
*
2025-
* @param \WP_Error $error The error object to check.
2026-
* @return bool True if the error is related to the lock, false otherwise.
2027-
*/
2020+
}
2021+
2022+
/**
2023+
* Checks if a WP_Error is related to the core_updater.lock.
2024+
*
2025+
* @param \WP_Error $error The error object to check.
2026+
* @return bool True if the error is related to the lock, false otherwise.
2027+
*/
20282028
private static function is_lock_error( $error ) {
20292029
// Check for the 'locked' error code used by WordPress Core
20302030
if ( 'locked' === $error->get_error_code() ) {

0 commit comments

Comments
 (0)