aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-09-26 19:40:07 -0400
committerGitHub <noreply@github.com>2024-09-27 09:40:07 +1000
commit65dde77f6d604faf4a87ddbff2477ee7629bc07f (patch)
tree732546fba8f09d20c8f789ce4c2c6b472ae6bbd2 /src/main/java/at/hannibal2/skyhanni/features/misc
parent092a29dd8b13c2b04b0b7c259446ab697201dd5e (diff)
downloadskyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.tar.gz
skyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.tar.bz2
skyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.zip
Backend: Detekt Fixes Part 1 (#2603)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt8
3 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt
index b0fbc2f31..fddb5bbda 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValueCalculator.kt
@@ -738,7 +738,7 @@ object EstimatedItemValueCalculator {
var totalPrice = 0.0
val map = mutableMapOf<String, Double>()
- //todo use repo
+ // todo use repo
val tieredEnchants = listOf("compact", "cultivating", "champion", "expertise", "hecatomb", "toxophilite")
val onlyTierOnePrices = listOf("ultimate_chimera", "ultimate_fatal_tempo", "smoldering", "ultimate_flash", "divine_gift")
val onlyTierFivePrices = listOf("ferocious_mana", "hardened_mana", "mana_vampire", "strong_mana")
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt
index 286560c73..244cc54be 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Enchant.kt
@@ -94,8 +94,7 @@ open class Enchant : Comparable<Enchant> {
return if (this.isUltimate()) -1 else 1
}
- class Normal : Enchant() {
- }
+ class Normal : Enchant()
class Ultimate : Enchant() {
override fun getFormat(level: Int, itemStack: ItemStack?) = "§d§l"
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt
index 2b33885c1..020004648 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/FeatureToggleProcessor.kt
@@ -24,8 +24,8 @@ class FeatureToggleProcessor : ConfigStructureReader {
latestCategory = Category(name, description)
}
- override fun endCategory() {
- }
+ @Suppress("EmptyFunctionBlock")
+ override fun endCategory() {}
override fun beginAccordion(baseObject: Any?, field: Field?, o: ConfigOption?, id: Int) {
val option = o ?: return
@@ -86,6 +86,6 @@ class FeatureToggleProcessor : ConfigStructureReader {
)
}
- override fun emitGuiOverlay(baseObject: Any?, field: Field?, option: ConfigOption?) {
- }
+ @Suppress("EmptyFunctionBlock")
+ override fun emitGuiOverlay(baseObject: Any?, field: Field?, option: ConfigOption?) {}
}