Skip to content

Commit

Permalink
Update optional handling
Browse files Browse the repository at this point in the history
  • Loading branch information
landonxjames committed Sep 17, 2024
1 parent d8ef5ce commit 1761a90
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import software.amazon.smithy.smoketests.traits.SmokeTestCase
import software.amazon.smithy.smoketests.traits.SmokeTestsTrait
import java.util.Optional
import java.util.logging.Logger
import kotlin.jvm.optionals.getOrElse

class SmokeTestsDecorator : ClientCodegenDecorator {
override val name: String = "SmokeTests"
Expand Down Expand Up @@ -174,7 +175,7 @@ class SmokeTestsInstantiator(
val rulesOrNull = index.endpointRulesForService(codegenContext.serviceShape)
val builtInParams: Parameters = (rulesOrNull?.parameters ?: Parameters.builder().build())
val temp: MutableList<String> = mutableListOf()
builtInParams.forEach { temp.add(it.builtIn.get()) }
builtInParams.forEach { temp.add(it.builtIn.getOrElse { "" }) }
temp
}
private val fipsName = "AWS::UseFIPS"
Expand Down

0 comments on commit 1761a90

Please sign in to comment.