remove redundant
This commit is contained in:
parent
afafdf1543
commit
abedf014ae
1 changed files with 0 additions and 2 deletions
|
@ -190,8 +190,6 @@ class Signature {
|
||||||
$public_key = self::get_remote_key( $signature_block['keyId'] );
|
$public_key = self::get_remote_key( $signature_block['keyId'] );
|
||||||
if ( \is_wp_error( $public_key ) ) {
|
if ( \is_wp_error( $public_key ) ) {
|
||||||
return $public_key;
|
return $public_key;
|
||||||
} else {
|
|
||||||
$public_key = \rtrim( $public_key );
|
|
||||||
}
|
}
|
||||||
$verified = \openssl_verify( $signed_data, $signature_block['signature'], $public_key, $algorithm ) > 0;
|
$verified = \openssl_verify( $signed_data, $signature_block['signature'], $public_key, $algorithm ) > 0;
|
||||||
if ( ! $verified ) {
|
if ( ! $verified ) {
|
||||||
|
|
Loading…
Reference in a new issue