woocommerce / woocommerce-order-source-attribution

WooCommerce Order Source Attribution helps merchants understand which marketing activities, channels or campaigns are leading to orders in their stores.
https://github.com/woocommerce/woocommerce-order-source-attribution
5 stars 0 forks source link

Remove redundant "if" checks. #49

Closed rawdreeg closed 1 year ago

rawdreeg commented 1 year ago

Changes proposed in this Pull Request:

A review on WCCOM PR (https://github.com/Automattic/woocommerce.com/pull/16156) has pointed out that we're performing the same if check: ! wccom || ! wccom.canTrackUser( 'analytics' ) twice. This PR removed the extra if check.

Changelog entry

Tweak - Remove redundant "if" checks.

rawdreeg commented 1 year ago

Thanks @ibndawood