Skip to content

Commit

Permalink
detockt
Browse files Browse the repository at this point in the history
  • Loading branch information
NopoTheGamer committed Feb 7, 2025
1 parent bba9fee commit 31d3c5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/utils/NeuInternalName.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ class NeuInternalName private constructor(private val internalName: String) {

fun String.toInternalName(): NeuInternalName = uppercase().replace(" ", "_").let {
if (it.contains("§")) {
ErrorManager.skyHanniError("Internal name found with color codes",
"Internal Name" to it, "Original String" to this)
ErrorManager.skyHanniError(
"Internal name found with color codes",
"Internal Name" to it, "Original String" to this
)
}
internalNameMap.getOrPut(it) { NeuInternalName(it) }
}
Expand Down

0 comments on commit 31d3c5a

Please sign in to comment.