Removed redundant condition (#12210)

Exception object cannot be empty()
This commit is contained in:
proArtex 2016-10-28 18:53:54 +03:00 committed by Mike Jolley
parent 4a1d5d3b0c
commit 8798ee4632
1 changed files with 1 additions and 3 deletions

View File

@ -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