Skip to content

Commit

Permalink
Appease Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-griffith committed Jan 10, 2025
1 parent 6ba73f0 commit c37dd45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class ToolPanel(
}
}

@Suppress("ktlint:trailing-comma-on-declaration-site")
@Suppress("ktlint:standard:trailing-comma-on-declaration-site")
private enum class ExportFormat(
description: String,
val extension: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fun StackElement.toBodyLine(version: String): BodyLine {
} ?: BodyLine(this)
}

@Suppress("ktlint:trailing-comma-on-declaration-site")
@Suppress("ktlint:standard:trailing-comma-on-declaration-site")
enum class MajorVersion(val version: String) {
SevenNine("7.9"),
EightZero("8.0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,11 @@ fun ColorHighlighter(
@OptIn(ExperimentalStdlibApi::class)
fun Color.toHexString(alpha: Boolean = false): String {
val hexString = rgb.toHexString()
return "#${if (alpha) hexString else { hexString.substring(2) }}"
return "#${
if (alpha) {
hexString
} else {
hexString.substring(2)
}
}"
}

0 comments on commit c37dd45

Please sign in to comment.