Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Walingar committed Oct 12, 2023
1 parent 7f400b2 commit e5fa6df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun java.awt.Color?.toComposeColorOrUnspecified() = this?.toComposeColor() ?: Co
fun retrieveColorOrNull(key: String): Color? =
try {
JBColor.namedColor(key, marker("JEWEL_JBCOLOR_MARKER")).toComposeColor()
} catch (e: AssertionError) {
} catch (_: AssertionError) {
// JBColor.marker will throw AssertionError on getRGB/any other color
// for now there is no way to handle non-existing key.
// The way should be introduced in platform
Expand Down

0 comments on commit e5fa6df

Please sign in to comment.