Skip to content

Commit

Permalink
Make detekt happy
Browse files Browse the repository at this point in the history
  • Loading branch information
devkanro committed Oct 13, 2023
1 parent bc0443d commit 856de48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/kotlin/org/jetbrains/jewel/IconMapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface IconMapper {

object IntelliJIconMapper : IconMapper {

private val verbose = true
private const val VERBOSE = true

override fun mapPath(
originalPath: String,
Expand All @@ -19,8 +19,8 @@ object IntelliJIconMapper : IconMapper {
val normalized = "/${originalPath.trimStart('/')}"
val overriddenPath = iconData.iconOverrides[normalized] ?: normalized

if (overriddenPath != normalized) {
if (verbose) println("Found theme icon override: '$originalPath' -> '$overriddenPath'")
if (overriddenPath != normalized && VERBOSE) {
println("Found theme icon override: '$originalPath' -> '$overriddenPath'")
}

return overriddenPath
Expand Down

0 comments on commit 856de48

Please sign in to comment.