aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-11-22 12:10:51 +0000
committerGitHub <noreply@github.com>2023-11-22 13:10:51 +0100
commit5c9cbdba458638ae962ccf92e750ebdcea718478 (patch)
treef4ab8c3f6abe71d4e056125f582cfde465fd79d0 /src/main/java/at/hannibal2/skyhanni/test
parent7137b0a07ba4c4efe65282a18ebc68f25ffa1796 (diff)
downloadskyhanni-5c9cbdba458638ae962ccf92e750ebdcea718478.tar.gz
skyhanni-5c9cbdba458638ae962ccf92e750ebdcea718478.tar.bz2
skyhanni-5c9cbdba458638ae962ccf92e750ebdcea718478.zip
Internal Change: More Random Cleanup (#724)
More Random Cleanup #724
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt
index cee60e7ae..6f1bc9f64 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt
@@ -244,8 +244,7 @@ object SkyHanniConfigSearchResetCommand {
if (this is Runnable) return "Runnable"
// we don't use javaClass.simpleName since we want to catch edge cases
- val name = javaClass.name
- return when (name) {
+ return when (val name = javaClass.name) {
"at.hannibal2.skyhanni.config.core.config.Position" -> "Position"
"java.lang.Boolean" -> "Boolean"
"java.lang.Integer" -> "Int"
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
index e6cb3e841..b86ac7200 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
@@ -62,7 +62,7 @@ class SkyHanniDebugsAndTests {
val debugLogger = LorenzLogger("debug/test")
- fun runn(compound: NBTTagCompound, text: String) {
+ private fun runn(compound: NBTTagCompound, text: String) {
print("$text'$compound'")
for (s in compound.keySet) {
val element = compound.getCompoundTag(s)