Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Dec 25, 2024
1 parent ffc6d1d commit 5828820
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ object EstimatedItemValueCalculator {
list.add(
" $nameColor${
displayName.allLettersFirstUppercase()
} ${attr.second}§7: $priceColor${if (price != null) price.shortFormat() else "Unknown"}",
} ${attr.second}§7: $priceColor${price?.shortFormat() ?: "Unknown"}",
)
}
// Adding 0.1 so that we always show the estimated item value overlay
Expand Down Expand Up @@ -931,7 +931,7 @@ object EstimatedItemValueCalculator {
return "§b$name $second Shard"
}

fun Pair<String, Int>.getAttributePrice(): Double? = getPriceOrCompositePriceForAttribute(
private fun Pair<String, Int>.getAttributePrice(): Double? = getPriceOrCompositePriceForAttribute(
"ATTRIBUTE_SHARD+ATTRIBUTE_$first",
second,
)
Expand Down

0 comments on commit 5828820

Please sign in to comment.