We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e87b13 commit 2f25042Copy full SHA for 2f25042
codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/Rust.kt
@@ -45,13 +45,7 @@ import kotlin.io.path.absolutePathString
45
// cargo commands and env values
46
private object Commands {
47
private const val cfgUnstable = "--cfg aws_sdk_unstable"
48
- fun func(s: String, add: String, flag: Boolean): String {
49
- if (flag) {
50
- return s + " " + add
51
- } else {
52
- return s
53
- }
54
+ fun func(s: String, add: String, flag: Boolean): String = if (flag) { "$s $add" } else { s }
55
56
fun cargoEnvDWarnings(enableUnstable: Boolean): Map<String, String> {
57
return mapOf(
0 commit comments