Skip to content

Commit

Permalink
Removed redundant condition (woocommerce#12210)
Browse files Browse the repository at this point in the history
Exception object cannot be empty()
  • Loading branch information
proArtex authored and mikejolley committed Oct 28, 2016
1 parent 4a1d5d3 commit 8798ee4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions includes/class-wc-checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,7 @@ public function process_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
Expand Down

0 comments on commit 8798ee4

Please sign in to comment.