message: [Wallet][Refactor] Inline getDebit/getCredit if else in updateAmount method.
  [Wallet][Refactor] Inline getDebit/getCredit if else in updateAmount method.
diff: @@ -1227,14 +1227,9 @@ CAmount CWalletTx::UpdateAmount(CAmount& amountToUpdate, bool& cacheFlagToUpdate
  if (fUseCache && cacheFlagToUpdate)
  return amountToUpdate;
  - CAmount amount;
  - if (!fCredit)
  - amount = GetDebit(mimeType);
  - else
  - amount = GetCredit(mimeType, true);
  - amountToUpdate = amount;
  + amountToUpdate = (fCredit) ? GetCredit(mimeType, true) : GetDebit(mimeType);
  cacheFlagToUpdate = true;
  - return amount;
  + return amountToUpdate;
  }
  // Return sum of unlocked coins
  