diff --git a/Plugin/Utils/ItemUtils.cs b/Plugin/Utils/ItemUtils.cs index 0374c3d..05e42a4 100644 --- a/Plugin/Utils/ItemUtils.cs +++ b/Plugin/Utils/ItemUtils.cs @@ -6,15 +6,7 @@ namespace LootValueEX.Utils { internal static class ItemUtils { - internal static float GetArmorDurability(IEnumerable repairableComponents) - { - float totalDurability = 0; - foreach (RepairableComponent component in repairableComponents) - { - totalDurability += component.Durability; - } - return totalDurability; - } + internal static float GetArmorDurability(IEnumerable repairableComponents) => repairableComponents.Sum(x => x.Durability); internal static Task GetBestTraderValueAsync(Item item) {