Removed redundant condition (#12210)
Exception object cannot be empty()
This commit is contained in:
parent
4a1d5d3b0c
commit
8798ee4632
|
@ -730,9 +730,7 @@ class WC_Checkout {
|
|||
}
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
if ( ! empty( $e ) ) {
|
||||
wc_add_notice( $e->getMessage(), 'error' );
|
||||
}
|
||||
wc_add_notice( $e->getMessage(), 'error' );
|
||||
}
|
||||
|
||||
// If we reached this point then there were errors
|
||||
|
|
Loading…
Reference in New Issue