message: Clean up conditional
diff: @@ -295,11 +295,12 @@ function groupItems(
  }
  if (requiredEnergyTypes.size) {
  + groupId +=
  + // Only add the grouping key if the socket matches what we need, otherwise it doesn't matter
  + item.energy &&
  + requiredEnergyTypes.has(item.energy.energyType) &&
  // If we can swap to another energy type, there's no need to group by current energy type
  - groupId += canSwapEnergyFromUpgradeSpendTier(defs, upgradeSpendTier, item, lockItemEnergyType)
  - ? DestinyEnergyType.Any
  - : // Only add the grouping key if the socket matches what we need, otherwise it doesn't matter
  - item.energy && requiredEnergyTypes.has(item.energy.energyType)
  + !canSwapEnergyFromUpgradeSpendTier(defs, upgradeSpendTier, item, lockItemEnergyType)
  ? item.energy.energyType
  : DestinyEnergyType.Any;
  }
  