diff options
| author | Krakenied <krakenied1@gmail.com> | 2025-11-28 16:42:33 +0100 |
|---|---|---|
| committer | Krakenied <46192742+Krakenied@users.noreply.github.com> | 2025-11-28 17:36:04 +0100 |
| commit | 451d68e53845daa5d8b35392591423ef22859fb7 (patch) | |
| tree | a07015516e359a120be201938bb194e0442d6ce0 | |
| parent | 79244225f04366cff0d1552dccee3d4c68f31ec0 (diff) | |
Replace 'if' expression with safe cast expression
| -rw-r--r-- | build.gradle.kts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index dec698f7..49a84be9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -161,5 +161,5 @@ publishing { fun findPropertyString(propertyName: String): String? { val propertyValue = project.findProperty(propertyName) - return if (propertyValue is String) propertyValue else null + return propertyValue as? String } |
