Skip to content

Commit 2623e48

Browse files
Copilotswissspidy
andcommitted
Remove superfluous is_wp_error check from is_lock_error method
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 18ebbbb commit 2623e48

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/Core_Command.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,10 +1676,6 @@ function () use ( $new_zip_file ) {
16761676
* @return bool True if the error is related to the lock, false otherwise.
16771677
*/
16781678
private static function is_lock_error( $error ) {
1679-
if ( ! is_wp_error( $error ) ) {
1680-
return false;
1681-
}
1682-
16831679
// Check for the 'locked' error code used by WordPress Core
16841680
if ( 'locked' === $error->get_error_code() ) {
16851681
return true;

0 commit comments

Comments
 (0)