Apply suggestions from code review

Co-authored-by: Néstor Soriano <nestor.soriano@automattic.com>
This commit is contained in:
Claudio Sanches 2020-06-30 13:05:56 -03:00 committed by GitHub
parent 5445d34283
commit 701490b13e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -63,10 +63,10 @@ abstract class WC_Legacy_Cart {
'tax_display_cart',
'fees',
),
array_keys( $this->cart_session_data )
is_array( $this->cart_session_data ) ? array_keys( $this->cart_session_data ) : array()
);
if ( in_array( $key, $legacy_keys, true ) ) {
if ( in_array( $name, $legacy_keys, true ) ) {
return true;
}