Skip to content

Commit

Permalink
Reverse order of operands for efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero committed Jul 20, 2023
1 parent 5c76c22 commit f241917
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,8 @@ internal class PurchasesOrchestrator constructor(
// region Private Methods

private fun shouldRefreshCustomerInfo(firstTimeInForeground: Boolean): Boolean {
return (firstTimeInForeground || deviceCache.isCustomerInfoCacheStale(appUserID, appInBackground = false)) &&
!appConfig.customEntitlementComputation
return !appConfig.customEntitlementComputation &&
(firstTimeInForeground || deviceCache.isCustomerInfoCacheStale(appUserID, appInBackground = false))
}

private fun getProductsOfTypes(
Expand Down

0 comments on commit f241917

Please sign in to comment.