Unverified Commit 63bde1b2 authored by Mahdi Hosseinzadeh's avatar Mahdi Hosseinzadeh Committed by GitHub

Simplify an `if` expression (#602)

parent ae46255c
...@@ -32,11 +32,7 @@ object SkikoProperties { ...@@ -32,11 +32,7 @@ object SkikoProperties {
val renderApi: GraphicsApi get() { val renderApi: GraphicsApi get() {
val environment = System.getenv("SKIKO_RENDER_API") val environment = System.getenv("SKIKO_RENDER_API")
val property = getProperty("skiko.renderApi") val property = getProperty("skiko.renderApi")
return if (environment != null) { return parseRenderApi(environment ?: property)
parseRenderApi(environment)
} else {
parseRenderApi(property)
}
} }
val gpuPriority: GpuPriority get() { val gpuPriority: GpuPriority get() {
...@@ -92,4 +88,4 @@ object SkikoProperties { ...@@ -92,4 +88,4 @@ object SkikoProperties {
return listOf(initialApi) + fallbackApis return listOf(initialApi) + fallbackApis
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment