From f052dda969869365afcb2f1fc89c899a56545feb Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 9 Jun 2024 20:46:52 +0200 Subject: additional changes to editorconfig and random code cleanup --- .../at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data/bazaar') diff --git a/src/main/java/at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt b/src/main/java/at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt index 6573cdb75..dfbb08164 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/bazaar/HypixelBazaarFetcher.kt @@ -63,7 +63,7 @@ object HypixelBazaarFetcher { private fun process(products: Map) = products.mapNotNull { (key, product) -> val internalName = NEUItems.transHypixelNameToInternalName(key) val sellOfferPrice = product.buySummary.minOfOrNull { it.pricePerUnit } ?: 0.0 - val insantBuyPrice = product.sellSummary.maxOfOrNull { it.pricePerUnit } ?: 0.0 + val instantBuyPrice = product.sellSummary.maxOfOrNull { it.pricePerUnit } ?: 0.0 if (product.quickStatus.isEmpty()) { return@mapNotNull null @@ -72,11 +72,10 @@ object HypixelBazaarFetcher { if (internalName.getItemStackOrNull() == null) { // Items that exist in Hypixel's Bazaar API, but not in NEU repo (not visible in the ingame bazaar). // Should only include Enchants - if (LorenzUtils.debug) - println("Unknown bazaar product: $key/$internalName") + if (LorenzUtils.debug) println("Unknown bazaar product: $key/$internalName") return@mapNotNull null } - internalName to BazaarData(internalName.itemName, sellOfferPrice, insantBuyPrice, product) + internalName to BazaarData(internalName.itemName, sellOfferPrice, instantBuyPrice, product) }.toMap() private fun BazaarQuickStatus.isEmpty(): Boolean = with(this) { @@ -104,7 +103,7 @@ object HypixelBazaarFetcher { userMessage, "fetchType" to fetchType, "failedAttepmts" to failedAttempts, - "rawResponse" to rawResponse + "rawResponse" to rawResponse, ) } } -- cgit